]> git.immae.eu Git - github/wallabag/wallabag.git/blame_incremental - .travis.yml
Add Sentry support
[github/wallabag/wallabag.git] / .travis.yml
... / ...
CommitLineData
1language: php
2
3services:
4 - rabbitmq
5 - redis
6
7# cache vendor dirs
8cache:
9 apt: true
10 directories:
11 - vendor
12 - $HOME/.composer/cache
13 - node_modules
14 - $HOME/.npm
15 - $HOME/.yarn-cache
16
17php:
18 - 7.1
19 - 7.2
20 - 7.3
21 - nightly
22
23node_js:
24 - "5"
25
26env:
27 - DB=mysql
28 - DB=pgsql
29 - DB=sqlite
30
31matrix:
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
39# exclude v1 branches
40branches:
41 except:
42 - legacy
43
44before_install:
45 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
46
47install:
48 - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi;
49 - if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi;
50 - if [[ $ASSETS = build ]]; then yarn install; fi;
51
52before_script:
53 - PHP=$TRAVIS_PHP_VERSION
54 - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
55 - phpenv config-rm xdebug.ini || echo "xdebug not available"
56 - composer self-update --no-progress
57 # install imagick
58 - pear config-set preferred_state beta
59 - pecl channel-update pecl.php.net
60 - yes | pecl install imagick
61
62script:
63 - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
64
65 - echo "travis_fold:start:prepare"
66 - make prepare DB=$DB
67 - echo "travis_fold:end:prepare"
68
69 - make fixtures
70
71 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then SYMFONY_PHPUNIT_VERSION=6.5 ./bin/simple-phpunit -v ; fi;
72 # PHPStan needs PHPUnit to be installed and cache app to be generated
73 - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then php bin/phpstan analyse src tests --no-progress --level 1 ; fi;
74 - 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;
76 - 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;
78 - if [[ $ASSETS = build ]]; then yarn run build:prod; fi;