]> git.immae.eu Git - github/wallabag/wallabag.git/blame - .travis.yml
Add multiple database tests on Travis
[github/wallabag/wallabag.git] / .travis.yml
CommitLineData
03493be0 1language: php
aa6e27cf 2
3e6b7ea0 3# faster builds on docker-container setup
2d733277
J
4sudo: false
5
3e6b7ea0
J
6# cache vendor dirs
7cache:
8 directories:
9 - vendor
10 - $HOME/.composer/cache
11
367664ee 12php:
3e6b7ea0
J
13 - 5.4
14 - 5.5
15 - 5.6
03fb6fde 16 - 7.0
3e6b7ea0 17 - hhvm
03fb6fde
JB
18
19env:
20 - DB=mysql
21 - DB=pgsql
22 - DB=sqlite
61413889
J
23
24matrix:
3e6b7ea0 25 fast_finish: true
03fb6fde
JB
26 exclude:
27 - php: hhvm
28 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
3e6b7ea0 29 allow_failures:
03fb6fde 30 - php: 7.0
3e6b7ea0 31 - php: hhvm
aa6e27cf 32
3d99ce9d 33branches:
3e6b7ea0
J
34 only:
35 - v2
36
37install:
38 - composer self-update
aa6e27cf 39
03fb6fde
JB
40before_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
9a014e48 44 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
03fb6fde 45 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
aa6e27cf
J
46
47script:
03fb6fde
JB
48 - ant prepare-$DB
49 - bin/phpunit --exclude-group command-doctrine -v
9a014e48
JB
50
51# after_script:
52 # - |
53 # if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
54 # wget https://scrutinizer-ci.com/ocular.phar
55 # php ocular.phar code-coverage:upload --format=php-clover coverage.clover
56 # fi