]> git.immae.eu Git - github/wallabag/wallabag.git/blob - .travis.yml
Fix authentication error from Github
[github/wallabag/wallabag.git] / .travis.yml
1 language: php
2
3 # faster builds on docker-container setup
4 sudo: false
5
6 # cache vendor dirs
7 cache:
8 directories:
9 - vendor
10 - $HOME/.composer/cache
11
12 php:
13 - 5.4
14 - 5.5
15 - 5.6
16 - 7.0
17 - hhvm
18
19 env:
20 - DB=mysql
21 - DB=pgsql
22 - DB=sqlite
23
24 matrix:
25 fast_finish: true
26 exclude:
27 - php: hhvm
28 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
29 allow_failures:
30 - php: 7.0
31 - php: hhvm
32
33 branches:
34 only:
35 - v2
36
37 before_script:
38 - composer self-update
39 - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
40 # disable xdebug since we don't use code-coverage for now
41 - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
42 # build coverage only on one build, to speed up results feedbacks
43 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
44 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
45
46 script:
47 - ant prepare-$DB
48 - bin/phpunit --exclude-group command-doctrine -v
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