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