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