aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-28 22:57:11 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-28 22:57:11 +0200
commit917040d4a0b7694ca4f695c02243ffb4283d6901 (patch)
tree0bd70455b7748145a7b944d47c6845ba214b2b4d /.travis.yml
parent4180fddac1aa011f121a1ab901f9f21aafa46112 (diff)
parentfef4124130484ebdb8194b83a3278e6f970a46fb (diff)
downloadwallabag-917040d4a0b7694ca4f695c02243ffb4283d6901.tar.gz
wallabag-917040d4a0b7694ca4f695c02243ffb4283d6901.tar.zst
wallabag-917040d4a0b7694ca4f695c02243ffb4283d6901.zip
Merge pull request #1434 from wallabag/travis-db
Add multiple database tests on Travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml32
1 files changed, 24 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 8d0cf817..d5355820 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,12 @@ language: php
3# faster builds on docker-container setup 3# faster builds on docker-container setup
4sudo: false 4sudo: false
5 5
6# used for HHVM
7addons:
8 apt:
9 packages:
10 - tidy
11
6# cache vendor dirs 12# cache vendor dirs
7cache: 13cache:
8 directories: 14 directories:
@@ -13,29 +19,39 @@ php:
13 - 5.4 19 - 5.4
14 - 5.5 20 - 5.5
15 - 5.6 21 - 5.6
22 - 7.0
16 - hhvm 23 - hhvm
17 - nightly 24
25env:
26 - DB=mysql
27 - DB=pgsql
28 - DB=sqlite
18 29
19matrix: 30matrix:
20 fast_finish: true 31 fast_finish: true
32 exclude:
33 - php: hhvm
34 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
21 allow_failures: 35 allow_failures:
36 - php: 7.0
22 - php: hhvm 37 - php: hhvm
23 - php: nightly
24 38
25branches: 39branches:
26 only: 40 only:
27 - v2 41 - v2
28 42
29install: 43before_script:
30 - composer self-update 44 - composer self-update
31 45 - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
32# build coverage only on one build, to speed up results feedbacks 46 # disable xdebug since we don't use code-coverage for now
33# before_script: 47 - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
48 # 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; 49 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
50 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
35 51
36script: 52script:
37 - ant prepare 53 - ant prepare-$DB
38 - bin/phpunit --exclude-group command-doctrine --debug $PHPUNIT_FLAGS 54 - bin/phpunit --exclude-group command-doctrine -v
39 55
40# after_script: 56# after_script:
41 # - | 57 # - |