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