From 45212811ddbd968a6d1e0080fb13a05047caff02 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 22 Apr 2019 07:01:59 +0200 Subject: Travis CI: Add database tests --- .travis.travelynx.conf | 12 ++++++++++++ .travis.yml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .travis.travelynx.conf 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 -- cgit v1.2.3