aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-09-26 11:56:15 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-09-26 11:56:15 +0200
commit03fb6fde5f02c4fce49fbe20ed384e693b805a0a (patch)
tree45d7144beaf305b182ca55a8d50178a492941636 /.travis.yml
parent57162494557c5eac938a7d6800ac1b112f73efc9 (diff)
downloadwallabag-03fb6fde5f02c4fce49fbe20ed384e693b805a0a.tar.gz
wallabag-03fb6fde5f02c4fce49fbe20ed384e693b805a0a.tar.zst
wallabag-03fb6fde5f02c4fce49fbe20ed384e693b805a0a.zip
Add multiple database tests on Travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml23
1 files changed, 17 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 8d0cf817..f78c2b15 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,14 +13,22 @@ php:
13 - 5.4 13 - 5.4
14 - 5.5 14 - 5.5
15 - 5.6 15 - 5.6
16 - 7.0
16 - hhvm 17 - hhvm
17 - nightly 18
19env:
20 - DB=mysql
21 - DB=pgsql
22 - DB=sqlite
18 23
19matrix: 24matrix:
20 fast_finish: true 25 fast_finish: true
26 exclude:
27 - php: hhvm
28 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
21 allow_failures: 29 allow_failures:
30 - php: 7.0
22 - php: hhvm 31 - php: hhvm
23 - php: nightly
24 32
25branches: 33branches:
26 only: 34 only:
@@ -29,13 +37,16 @@ branches:
29install: 37install:
30 - composer self-update 38 - composer self-update
31 39
32# build coverage only on one build, to speed up results feedbacks 40before_script:
33# before_script: 41 # disable xdebug since we don't use code-coverage for now
42 - phpenv config-rm xdebug.ini
43 # build coverage only on one build, to speed up results feedbacks
34 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi; 44 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
45 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
35 46
36script: 47script:
37 - ant prepare 48 - ant prepare-$DB
38 - bin/phpunit --exclude-group command-doctrine --debug $PHPUNIT_FLAGS 49 - bin/phpunit --exclude-group command-doctrine -v
39 50
40# after_script: 51# after_script:
41 # - | 52 # - |