mirror of
https://github.com/derf/travelynx
synced 2024-11-26 14:30:18 +00:00
Travis CI: Add database tests
This commit is contained in:
parent
ec93914f11
commit
45212811dd
2 changed files with 23 additions and 0 deletions
12
.travis.travelynx.conf
Normal file
12
.travis.travelynx.conf
Normal 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 => '',
|
||||
},
|
||||
};
|
11
.travis.yml
11
.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
|
||||
|
|
Loading…
Reference in a new issue