diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 69b4f919..65e7e304 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -23,8 +23,8 @@ php: | |||
23 | - 5.5 | 23 | - 5.5 |
24 | - 5.6 | 24 | - 5.6 |
25 | - 7.0 | 25 | - 7.0 |
26 | - 7.1 | ||
26 | - nightly | 27 | - nightly |
27 | - hhvm | ||
28 | 28 | ||
29 | node_js: | 29 | node_js: |
30 | - "5" | 30 | - "5" |
@@ -37,15 +37,32 @@ env: | |||
37 | matrix: | 37 | matrix: |
38 | fast_finish: true | 38 | fast_finish: true |
39 | include: | 39 | include: |
40 | # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency | ||
41 | - php: hhvm-3.12 | ||
42 | sudo: required | ||
43 | dist: trusty | ||
44 | group: edge | ||
45 | env: DB=mysql | ||
46 | addons: | ||
47 | apt: | ||
48 | packages: | ||
49 | - mysql-server-5.6 | ||
50 | - mysql-client-core-5.6 | ||
51 | - mysql-client-5.6 | ||
52 | services: | ||
53 | - mysql | ||
54 | - php: hhvm-3.12 | ||
55 | sudo: required | ||
56 | dist: trusty | ||
57 | group: edge | ||
58 | env: DB=sqlite | ||
40 | - php: 7.0 | 59 | - php: 7.0 |
41 | env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite ASSETS=nobuild | 60 | env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite ASSETS=nobuild |
42 | - php: 7.0 | 61 | - php: 7.0 |
43 | env: DB=sqlite ASSETS=build | 62 | env: DB=sqlite ASSETS=build |
44 | exclude: | ||
45 | - php: hhvm | ||
46 | env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency | ||
47 | allow_failures: | 63 | allow_failures: |
48 | - php: hhvm | 64 | - php: hhvm-3.12 |
65 | - php: nightly | ||
49 | 66 | ||
50 | # exclude v1 branches | 67 | # exclude v1 branches |
51 | branches: | 68 | branches: |
@@ -53,9 +70,11 @@ branches: | |||
53 | - legacy | 70 | - legacy |
54 | 71 | ||
55 | before_script: | 72 | before_script: |
56 | - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; | 73 | - PHP=$TRAVIS_PHP_VERSION |
57 | - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi; | 74 | - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; |
58 | - if [ "$TRAVIS_PHP_VERSION" = "5.5" ]; then composer require "phpunit/phpunit:4.*" --no-update; fi; | 75 | # xdebug isn't enable for PHP 7.1 |
76 | - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi | ||
77 | - if [[ $PHP = 5.5 ]]; then composer require "phpunit/phpunit:4.*" --no-update; fi; | ||
59 | - composer self-update --no-progress | 78 | - composer self-update --no-progress |
60 | - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; | 79 | - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; |
61 | 80 | ||