aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 29ca7dc3..e6cf96cb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,11 +20,10 @@ 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
@@ -60,9 +59,9 @@ before_script:
60 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; 59 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
61 60
62install: 61install:
63 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.7; fi; 62 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi;
64 - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi; 63 - if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi;
65 - if [[ $ASSETS = build ]]; then npm install; fi; 64 - if [[ $ASSETS = build ]]; then yarn install; fi;
66 65
67before_install: 66before_install:
68 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; 67 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
@@ -70,9 +69,18 @@ before_install:
70script: 69script:
71 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist 70 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
72 - ant prepare-$DB 71 - ant prepare-$DB
72
73 - echo "travis_fold:start:migrations"
74 - php bin/console doctrine:migrations:migrate --no-interaction --env=test
75 - echo "travis_fold:end:migrations"
76
77 - echo "travis_fold:start:fixtures"
78 - php bin/console doctrine:fixtures:load --no-interaction --env=test
79 - echo "travis_fold:end:fixtures"
80
73 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; 81 - 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; 82 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
75 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; 83 - 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; 84 - 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; 85 - 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; 86 - if [[ $ASSETS = build ]]; then yarn run build:prod; fi;