aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-06-23 09:25:01 +0200
committerGitHub <noreply@github.com>2016-06-23 09:25:01 +0200
commit49e2854d5c15bbce3f24f91da34450e8f209295b (patch)
treef5aa95445549cc151e86f144b40464eecee28cf7 /.travis.yml
parent4eaaa27bb5b9a5725b26471a39548d764fc9cd0a (diff)
parent496cfdc0172fd55cb555f74b64704c8f50c71b77 (diff)
downloadwallabag-49e2854d5c15bbce3f24f91da34450e8f209295b.tar.gz
wallabag-49e2854d5c15bbce3f24f91da34450e8f209295b.tar.zst
wallabag-49e2854d5c15bbce3f24f91da34450e8f209295b.zip
Merge pull request #2142 from wallabag/v2-use-npm
Manage assets through npm
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 d397c872..0e72d207 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
@@ -22,16 +25,21 @@ php:
22 - 7.0 25 - 7.0
23 - hhvm 26 - hhvm
24 27
28node_js:
29 - "5"
30
25env: 31env:
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
30matrix: 36matrix:
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
60install:
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
52before_install: 64before_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
55script: 67script:
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 - bin/phpunit -v 70 - bin/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;