]> git.immae.eu Git - github/wallabag/wallabag.git/blame_incremental - .travis.yml
Merge pull request #1606 from wallabag/v2-tag-cascade
[github/wallabag/wallabag.git] / .travis.yml
... / ...
CommitLineData
1language: php
2
3# faster builds on docker-container setup
4sudo: false
5
6# used for HHVM
7addons:
8 apt:
9 packages:
10 - tidy
11
12# cache vendor dirs
13cache:
14 directories:
15 - vendor
16 - $HOME/.composer/cache
17
18php:
19 - 5.5
20 - 5.6
21 - 7.0
22 - hhvm
23
24env:
25 - DB=mysql
26 - DB=pgsql
27 - DB=sqlite
28
29matrix:
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: hhvm
36
37branches:
38 only:
39 - v2
40
41before_script:
42 - composer self-update
43 - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
44 # disable xdebug since we don't use code-coverage for now
45 - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
46 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
47
48script:
49 - ant prepare-$DB
50 - bin/phpunit -v