diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-22 07:01:59 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-22 07:01:59 +0200 |
commit | 45212811ddbd968a6d1e0080fb13a05047caff02 (patch) | |
tree | 369272c0ae398ee3059a7160a891f756b306a1c8 | |
parent | ec93914f11b907d5ba1837dbf222251d963f96c1 (diff) |
Travis CI: Add database tests
-rw-r--r-- | .travis.travelynx.conf | 12 | ||||
-rw-r--r-- | .travis.yml | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/.travis.travelynx.conf b/.travis.travelynx.conf new file mode 100644 index 0000000..2678d10 --- /dev/null +++ b/.travis.travelynx.conf @@ -0,0 +1,12 @@ +{ + cache => { + schedule => '/tmp/dbf-iris-main', + realtime => '/tmp/dbf-iris-realtime', + }, + db => { + host => 'localhost', + database => 'travelynx_ci_test', + user => 'postgres', + password => '', + }, +}; diff --git a/.travis.yml b/.travis.yml index 12efa98..88bd3d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,17 @@ perl: - "5.24" - "5.22" - "5.20" +services: + - postgresql +addons: + apt: + packages: + - libcache-perl + - libpq-dev + - libxml2-dev +before_script: + - cp .travis.travelynx.conf travelynx.conf + - psql -c 'create database travelynx_ci_test;' -U postgres script: - carton install - carton exec prove -lv |