]>
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 | |
fd3fd481 | 37 | # exclude v1 branches |
3d99ce9d | 38 | branches: |
fd3fd481 JB |
39 | except: |
40 | - master | |
41 | - dev | |
3e6b7ea0 | 42 | |
03fb6fde | 43 | before_script: |
3ee1582e JB |
44 | - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; |
45 | - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi; | |
46 | - composer self-update --no-progress | |
bb0efca4 | 47 | - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; |
aa6e27cf | 48 | |
6daadb6c NL |
49 | before_install: |
50 | - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; | |
51 | ||
aa6e27cf | 52 | script: |
3ee1582e | 53 | - travis_wait composer update --no-interaction --no-progress |
03fb6fde | 54 | - ant prepare-$DB |
bd2c8b46 | 55 | - bin/phpunit -v |