aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml30
1 files changed, 5 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml
index b0b26b56..c7bb05fb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -41,31 +41,9 @@ env:
41matrix: 41matrix:
42 fast_finish: true 42 fast_finish: true
43 include: 43 include:
44 # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
45 - php: hhvm-3.12
46 sudo: required
47 dist: trusty
48 group: edge
49 env: DB=mysql
50 addons:
51 apt:
52 packages:
53 - mysql-server-5.6
54 - mysql-client-core-5.6
55 - mysql-client-5.6
56 services:
57 - mysql
58 - php: hhvm-3.12
59 sudo: required
60 dist: trusty
61 group: edge
62 env: DB=sqlite
63 - php: 7.0 44 - php: 7.0
64 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite 45 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
65 - php: 7.0
66 env: DB=sqlite ASSETS=build
67 allow_failures: 46 allow_failures:
68 - php: hhvm-3.12
69 - php: 7.1 47 - php: 7.1
70 - php: nightly 48 - php: nightly
71 49
@@ -84,15 +62,17 @@ before_script:
84 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; 62 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
85 63
86install: 64install:
87 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi; 65 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.7; fi;
88 - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi; 66 - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi;
67 - if [[ $ASSETS = build ]]; then npm install; fi;
89 68
90before_install: 69before_install:
91 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; 70 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
92 71
93script: 72script:
94 - travis_wait bash install_dev.sh 73 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
95 - ant prepare-$DB 74 - ant prepare-$DB
96 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then phpunit -v ; fi; 75 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then phpunit -v ; fi;
97 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; 76 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
98 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; 77 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
78 - if [[ $ASSETS = build ]]; then ./node_modules/grunt-cli/bin/grunt tests; fi;