]> git.immae.eu Git - github/wallabag/wallabag.git/blame - .travis.yml
Typo
[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
fef41241
JB
6# used for HHVM
7addons:
8 apt:
9 packages:
10 - tidy
11
3e6b7ea0
J
12# cache vendor dirs
13cache:
14 directories:
15 - vendor
16 - $HOME/.composer/cache
17
367664ee 18php:
3e6b7ea0
J
19 - 5.4
20 - 5.5
21 - 5.6
03fb6fde 22 - 7.0
3e6b7ea0 23 - hhvm
03fb6fde
JB
24
25env:
26 - DB=mysql
27 - DB=pgsql
28 - DB=sqlite
61413889
J
29
30matrix:
3e6b7ea0 31 fast_finish: true
03fb6fde
JB
32 exclude:
33 - php: hhvm
34 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
3e6b7ea0 35 allow_failures:
03fb6fde 36 - php: 7.0
3e6b7ea0 37 - php: hhvm
aa6e27cf 38
3d99ce9d 39branches:
3e6b7ea0
J
40 only:
41 - v2
42
03fb6fde 43before_script:
609594fa
JB
44 - composer self-update
45 - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
03fb6fde 46 # disable xdebug since we don't use code-coverage for now
dc22b46b 47 - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
03fb6fde 48 # build coverage only on one build, to speed up results feedbacks
9a014e48 49 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
03fb6fde 50 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
aa6e27cf
J
51
52script:
03fb6fde 53 - ant prepare-$DB
8a493541 54 - SYMFONY_DEPRECATIONS_HELPER=weak bin/phpunit -v
9a014e48
JB
55
56# after_script:
57 # - |
58 # if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
59 # wget https://scrutinizer-ci.com/ocular.phar
60 # php ocular.phar code-coverage:upload --format=php-clover coverage.clover
61 # fi