]> git.immae.eu Git - github/wallabag/wallabag.git/blame - .travis.yml
Fix tests for all
[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
03fb6fde 37before_script:
609594fa
JB
38 - composer self-update
39 - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
03fb6fde 40 # disable xdebug since we don't use code-coverage for now
dc22b46b 41 - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
03fb6fde 42 # build coverage only on one build, to speed up results feedbacks
9a014e48 43 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
03fb6fde 44 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
aa6e27cf
J
45
46script:
03fb6fde
JB
47 - ant prepare-$DB
48 - bin/phpunit --exclude-group command-doctrine -v
9a014e48
JB
49
50# after_script:
51 # - |
52 # if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
53 # wget https://scrutinizer-ci.com/ocular.phar
54 # php ocular.phar code-coverage:upload --format=php-clover coverage.clover
55 # fi