]> git.immae.eu Git - github/wallabag/wallabag.git/blob - .travis.yml
Add multiple database tests on Travis
[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 install:
38 - composer self-update
39
40 before_script:
41 # disable xdebug since we don't use code-coverage for now
42 - phpenv config-rm xdebug.ini
43 # build coverage only on one build, to speed up results feedbacks
44 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
45 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
46
47 script:
48 - ant prepare-$DB
49 - bin/phpunit --exclude-group command-doctrine -v
50
51 # after_script:
52 # - |
53 # if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
54 # wget https://scrutinizer-ci.com/ocular.phar
55 # php ocular.phar code-coverage:upload --format=php-clover coverage.clover
56 # fi