aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml36
1 files changed, 28 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index d397c872..73f9491a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,7 +20,8 @@ php:
20 - 5.5 20 - 5.5
21 - 5.6 21 - 5.6
22 - 7.0 22 - 7.0
23 - hhvm 23 - 7.1
24 - nightly
24 25
25env: 26env:
26 - DB=mysql 27 - DB=mysql
@@ -30,13 +31,30 @@ env:
30matrix: 31matrix:
31 fast_finish: true 32 fast_finish: true
32 include: 33 include:
34 # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
35 - php: hhvm-3.12
36 sudo: required
37 dist: trusty
38 group: edge
39 env: DB=mysql
40 addons:
41 apt:
42 packages:
43 - mysql-server-5.6
44 - mysql-client-core-5.6
45 - mysql-client-5.6
46 services:
47 - mysql
48 - php: hhvm-3.12
49 sudo: required
50 dist: trusty
51 group: edge
52 env: DB=sqlite
33 - php: 7.0 53 - php: 7.0
34 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite 54 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
35 exclude:
36 - php: hhvm
37 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
38 allow_failures: 55 allow_failures:
39 - php: hhvm 56 - php: hhvm-3.12
57 - php: nightly
40 58
41# exclude v1 branches 59# exclude v1 branches
42branches: 60branches:
@@ -44,8 +62,10 @@ branches:
44 - legacy 62 - legacy
45 63
46before_script: 64before_script:
47 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; 65 - PHP=$TRAVIS_PHP_VERSION
48 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi; 66 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
67 # xdebug isn't enable for PHP 7.1
68 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
49 - composer self-update --no-progress 69 - composer self-update --no-progress
50 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; 70 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
51 71
@@ -55,6 +75,6 @@ before_install:
55script: 75script:
56 - travis_wait composer install --no-interaction --no-progress --prefer-dist -o 76 - travis_wait composer install --no-interaction --no-progress --prefer-dist -o
57 - ant prepare-$DB 77 - ant prepare-$DB
58 - bin/phpunit -v 78 - phpunit -v
59 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; 79 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
60 - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; 80 - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;