]> git.immae.eu Git - github/wallabag/wallabag.git/blame - .travis.yml
Replace continue; with break; to avoid PHP 7.3 warnings
[github/wallabag/wallabag.git] / .travis.yml
CommitLineData
03493be0 1language: php
aa6e27cf 2
e31ee20d 3services:
d470f817
JB
4 - rabbitmq
5 - redis
2d733277 6
3e6b7ea0
J
7# cache vendor dirs
8cache:
4cb3ef51 9 apt: true
3e6b7ea0
J
10 directories:
11 - vendor
12 - $HOME/.composer/cache
5ecdfcd0 13 - node_modules
5ecdfcd0 14 - $HOME/.npm
c44d13f9 15 - $HOME/.yarn-cache
3e6b7ea0 16
367664ee 17php:
6dfac457 18 - 7.1
9ab45e68 19 - 7.2
f168642b 20 - 7.3
19738973 21 - nightly
03fb6fde 22
5ecdfcd0
TC
23node_js:
24 - "5"
25
03fb6fde 26env:
40c47f70
JB
27 - DB=mysql
28 - DB=pgsql
29 - DB=sqlite
61413889
J
30
31matrix:
3e6b7ea0 32 fast_finish: true
4cb3ef51 33 include:
6fc95673 34 - php: 7.2
f440e282 35 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
3e6b7ea0 36 allow_failures:
6dfac457 37 - php: nightly
f168642b 38 - php: 7.3
aa6e27cf 39
fd3fd481 40# exclude v1 branches
3d99ce9d 41branches:
fd3fd481 42 except:
3320d394 43 - legacy
3e6b7ea0 44
5a4cbf5b
JB
45before_install:
46 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
47
48install:
49 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi;
50 - if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi;
51 - if [[ $ASSETS = build ]]; then yarn install; fi;
52
03fb6fde 53before_script:
fc41abb9
JB
54 - PHP=$TRAVIS_PHP_VERSION
55 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
6dfac457 56 # xdebug isn't enable for PHP 7.1
fc41abb9 57 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
3ee1582e 58 - composer self-update --no-progress
40c47f70 59 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
6daadb6c 60
aa6e27cf 61script:
5a4cbf5b 62 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
2054740f 63 - echo "travis_fold:start:prepare"
8bde7de1 64 - make prepare DB=$DB
e36c85eb 65 - echo "travis_fold:end:prepare"
1f155b29 66
6fc95673 67 - make fixtures
1f155b29 68
f168642b 69 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then SYMFONY_PHPUNIT_VERSION=6.5 ./bin/simple-phpunit -v ; fi;
38520658 70 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
40c47f70 71 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
b6692247 72 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;
4da598c5 73 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/UserBundle/Resources/translations -v ; fi;
4cea76b0 74 - if [[ $ASSETS = build ]]; then yarn run build:prod; fi;