Travis CI: Add database tests

This commit is contained in:
Daniel Friesel 2019-04-22 07:01:59 +02:00
parent ec93914f11
commit 45212811dd
2 changed files with 23 additions and 0 deletions

12
.travis.travelynx.conf Normal file
View file

@ -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 => '',
},
};

View file

@ -5,6 +5,17 @@ perl:
- "5.24" - "5.24"
- "5.22" - "5.22"
- "5.20" - "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: script:
- carton install - carton install
- carton exec prove -lv - carton exec prove -lv