diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 73f9491a..65e7e304 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 |
@@ -23,10 +26,13 @@ php: | |||
23 | - 7.1 | 26 | - 7.1 |
24 | - nightly | 27 | - nightly |
25 | 28 | ||
29 | node_js: | ||
30 | - "5" | ||
31 | |||
26 | env: | 32 | env: |
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 | ||
31 | matrix: | 37 | matrix: |
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: nightly | 65 | - php: nightly |
@@ -66,14 +74,19 @@ before_script: | |||
66 | - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; | 74 | - 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 | 75 | # xdebug isn't enable for PHP 7.1 |
68 | - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi | 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; | ||
69 | - composer self-update --no-progress | 78 | - composer self-update --no-progress |
70 | - 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; |
71 | 80 | ||
81 | install: | ||
82 | - if [[ $ASSETS != nobuild ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi; | ||
83 | - if [[ $ASSETS != nobuild ]]; then npm install -g npm@latest; fi; | ||
84 | |||
72 | before_install: | 85 | before_install: |
73 | - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; | 86 | - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; |
74 | 87 | ||
75 | script: | 88 | script: |
76 | - travis_wait composer install --no-interaction --no-progress --prefer-dist -o | 89 | - travis_wait bash install.sh |
77 | - ant prepare-$DB | 90 | - ant prepare-$DB |
78 | - phpunit -v | 91 | - phpunit -v |
79 | - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; | 92 | - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; |