aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-10-23 11:09:17 +0200
committerGitHub <noreply@github.com>2017-10-23 11:09:17 +0200
commit1953a872932a63792293b4aec087880265ba89f7 (patch)
treefd16599e737fcdaf193c933ef3ec4a4ee248b117 /.travis.yml
parentd83d25dadec2c38460a32d96f5d2903426fec9d3 (diff)
parent702f2d67d60ca963492b90dad74cb5f8dcc84e51 (diff)
downloadwallabag-1953a872932a63792293b4aec087880265ba89f7.tar.gz
wallabag-1953a872932a63792293b4aec087880265ba89f7.tar.zst
wallabag-1953a872932a63792293b4aec087880265ba89f7.zip
Merge pull request #3011 from wallabag/2.3
wallabag 2.3.0
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
1 files changed, 17 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 29ca7dc3..6b279ed6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,14 +20,14 @@ cache:
20 - vendor 20 - vendor
21 - $HOME/.composer/cache 21 - $HOME/.composer/cache
22 - node_modules 22 - node_modules
23 - $HOME/.cache/bower
24 - $HOME/.npm 23 - $HOME/.npm
24 - $HOME/.yarn-cache
25 25
26php: 26php:
27 - 5.5
28 - 5.6 27 - 5.6
29 - 7.0 28 - 7.0
30 - 7.1 29 - 7.1
30 - 7.2
31 - nightly 31 - nightly
32 32
33node_js: 33node_js:
@@ -44,6 +44,7 @@ matrix:
44 - php: 7.0 44 - php: 7.0
45 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite 45 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
46 allow_failures: 46 allow_failures:
47 - php: 7.2
47 - php: nightly 48 - php: nightly
48 49
49# exclude v1 branches 50# exclude v1 branches
@@ -60,9 +61,9 @@ before_script:
60 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; 61 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
61 62
62install: 63install:
63 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.7; fi; 64 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi;
64 - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi; 65 - if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi;
65 - if [[ $ASSETS = build ]]; then npm install; fi; 66 - if [[ $ASSETS = build ]]; then yarn install; fi;
66 67
67before_install: 68before_install:
68 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; 69 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
@@ -70,9 +71,18 @@ before_install:
70script: 71script:
71 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist 72 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
72 - ant prepare-$DB 73 - ant prepare-$DB
74
75 - echo "travis_fold:start:migrations"
76 - php bin/console doctrine:migrations:migrate --no-interaction --env=test
77 - echo "travis_fold:end:migrations"
78
79 - echo "travis_fold:start:fixtures"
80 - php bin/console doctrine:fixtures:load --no-interaction --env=test
81 - echo "travis_fold:end:fixtures"
82
73 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; 83 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi;
74 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; 84 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
75 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; 85 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
76 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi; 86 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;
77 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/UserBundle/Resources/translations -v ; fi; 87 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/UserBundle/Resources/translations -v ; fi;
78 - if [[ $ASSETS = build ]]; then ./node_modules/grunt-cli/bin/grunt tests; fi; 88 - if [[ $ASSETS = build ]]; then yarn run build:prod; fi;