aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 17 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 1a33198a..dd8815c1 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,16 +26,21 @@ php:
23 - nightly 26 - nightly
24 - hhvm 27 - hhvm
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
33 include: 39 include:
34 - php: 7.0 40 - php: 7.0
35 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite 41 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite ASSETS=nobuild
42 - php: 7.0
43 env: DB=sqlite ASSETS=build
36 exclude: 44 exclude:
37 - php: hhvm 45 - php: hhvm
38 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency 46 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
@@ -50,11 +58,15 @@ before_script:
50 - composer self-update --no-progress 58 - composer self-update --no-progress
51 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; 59 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
52 60
61install:
62 - if [[ $ASSETS != nobuild ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi;
63 - if [[ $ASSETS != nobuild ]]; then npm install -g npm@latest; fi;
64
53before_install: 65before_install:
54 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; 66 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
55 67
56script: 68script:
57 - travis_wait composer install --no-interaction --no-progress --prefer-dist -o 69 - travis_wait bash install.sh
58 - ant prepare-$DB 70 - ant prepare-$DB
59 - phpunit -v 71 - phpunit -v
60 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; 72 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;