]>
Commit | Line | Data |
---|---|---|
03493be0 | 1 | language: php |
aa6e27cf | 2 | |
3e6b7ea0 | 3 | # faster builds on docker-container setup |
2d733277 J |
4 | sudo: false |
5 | ||
fef41241 JB |
6 | # used for HHVM |
7 | addons: | |
8 | apt: | |
9 | packages: | |
10 | - tidy | |
11 | ||
3e6b7ea0 J |
12 | # cache vendor dirs |
13 | cache: | |
14 | directories: | |
15 | - vendor | |
16 | - $HOME/.composer/cache | |
17 | ||
367664ee | 18 | php: |
3e6b7ea0 J |
19 | - 5.5 |
20 | - 5.6 | |
03fb6fde | 21 | - 7.0 |
3e6b7ea0 | 22 | - hhvm |
03fb6fde JB |
23 | |
24 | env: | |
25 | - DB=mysql | |
26 | - DB=pgsql | |
27 | - DB=sqlite | |
61413889 J |
28 | |
29 | matrix: | |
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 J |
34 | allow_failures: |
35 | - php: hhvm | |
aa6e27cf | 36 | |
3d99ce9d | 37 | branches: |
3e6b7ea0 J |
38 | only: |
39 | - v2 | |
40 | ||
03fb6fde | 41 | before_script: |
3ee1582e JB |
42 | - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; |
43 | - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi; | |
44 | - composer self-update --no-progress | |
609594fa | 45 | - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; |
03fb6fde | 46 | - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi; |
aa6e27cf J |
47 | |
48 | script: | |
3ee1582e | 49 | - travis_wait composer update --no-interaction --no-progress |
03fb6fde | 50 | - ant prepare-$DB |
bd2c8b46 | 51 | - bin/phpunit -v |