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