aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml23
1 files changed, 18 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 53cf9bb5..c343d5ae 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,6 +15,9 @@ cache:
15 directories: 15 directories:
16 - vendor 16 - vendor
17 - $HOME/.composer/cache 17 - $HOME/.composer/cache
18 - node_modules
19 - $HOME/.cache/bower
20 - $HOME/.npm
18 21
19php: 22php:
20 - 5.5 23 - 5.5
@@ -23,10 +26,13 @@ php:
23 - 7.1 26 - 7.1
24 - nightly 27 - nightly
25 28
29node_js:
30 - "5"
31
26env: 32env:
27 - DB=mysql 33 - DB=mysql ASSETS=nobuild
28 - DB=pgsql 34 - DB=pgsql ASSETS=nobuild
29 - DB=sqlite 35 - DB=sqlite ASSETS=nobuild
30 36
31matrix: 37matrix:
32 fast_finish: true 38 fast_finish: true
@@ -51,7 +57,9 @@ matrix:
51 group: edge 57 group: edge
52 env: DB=sqlite 58 env: DB=sqlite
53 - php: 7.0 59 - php: 7.0
54 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite 60 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite ASSETS=nobuild
61 - php: 7.0
62 env: DB=sqlite ASSETS=build
55 allow_failures: 63 allow_failures:
56 - php: hhvm-3.12 64 - php: hhvm-3.12
57 - php: 7.1 65 - php: 7.1
@@ -67,14 +75,19 @@ before_script:
67 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; 75 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
68 # xdebug isn't enable for PHP 7.1 76 # xdebug isn't enable for PHP 7.1
69 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi 77 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
78 - if [[ $PHP = 5.5 ]]; then composer require "phpunit/phpunit:4.*" --no-update; fi;
70 - composer self-update --no-progress 79 - composer self-update --no-progress
71 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; 80 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
72 81
82install:
83 - if [[ $ASSETS != nobuild ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi;
84 - if [[ $ASSETS != nobuild ]]; then npm install -g npm@latest; fi;
85
73before_install: 86before_install:
74 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; 87 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
75 88
76script: 89script:
77 - travis_wait composer install --no-interaction --no-progress --prefer-dist -o 90 - travis_wait bash install.sh
78 - ant prepare-$DB 91 - ant prepare-$DB
79 - phpunit -v 92 - phpunit -v
80 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; 93 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;