]> git.immae.eu Git - github/wallabag/wallabag.git/blob - .travis.yml
Replace continue; with break; to avoid PHP 7.3 warnings
[github/wallabag/wallabag.git] / .travis.yml
1 language: php
2
3 services:
4 - rabbitmq
5 - redis
6
7 # cache vendor dirs
8 cache:
9 apt: true
10 directories:
11 - vendor
12 - $HOME/.composer/cache
13 - node_modules
14 - $HOME/.npm
15 - $HOME/.yarn-cache
16
17 php:
18 - 7.1
19 - 7.2
20 - 7.3
21 - nightly
22
23 node_js:
24 - "5"
25
26 env:
27 - DB=mysql
28 - DB=pgsql
29 - DB=sqlite
30
31 matrix:
32 fast_finish: true
33 include:
34 - php: 7.2
35 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
36 allow_failures:
37 - php: nightly
38 - php: 7.3
39
40 # exclude v1 branches
41 branches:
42 except:
43 - legacy
44
45 before_install:
46 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
47
48 install:
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
53 before_script:
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;
56 # xdebug isn't enable for PHP 7.1
57 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
58 - composer self-update --no-progress
59 - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
60
61 script:
62 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
63 - echo "travis_fold:start:prepare"
64 - make prepare DB=$DB
65 - echo "travis_fold:end:prepare"
66
67 - make fixtures
68
69 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then SYMFONY_PHPUNIT_VERSION=6.5 ./bin/simple-phpunit -v ; fi;
70 - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
71 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
72 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;
73 - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/UserBundle/Resources/translations -v ; fi;
74 - if [[ $ASSETS = build ]]; then yarn run build:prod; fi;