2015-01-30 08:09:53 +00:00
|
|
|
language: php
|
2015-01-31 08:15:51 +00:00
|
|
|
|
2016-02-15 19:35:28 +00:00
|
|
|
services:
|
2019-06-12 18:34:12 +00:00
|
|
|
- mysql
|
|
|
|
- postgresql
|
2018-11-23 07:50:16 +00:00
|
|
|
- rabbitmq
|
|
|
|
- redis
|
2015-03-27 18:47:30 +00:00
|
|
|
|
2015-03-27 23:23:25 +00:00
|
|
|
# cache vendor dirs
|
|
|
|
cache:
|
2016-03-20 20:10:17 +00:00
|
|
|
apt: true
|
2015-03-27 23:23:25 +00:00
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer/cache
|
2016-03-08 16:02:34 +00:00
|
|
|
- node_modules
|
|
|
|
- $HOME/.npm
|
2017-05-09 20:53:01 +00:00
|
|
|
- $HOME/.yarn-cache
|
2015-03-27 23:23:25 +00:00
|
|
|
|
2015-01-30 10:23:18 +00:00
|
|
|
php:
|
2016-08-17 09:40:35 +00:00
|
|
|
- 7.1
|
2017-07-24 13:48:53 +00:00
|
|
|
- 7.2
|
2018-11-27 09:29:11 +00:00
|
|
|
- 7.3
|
2016-05-09 08:42:11 +00:00
|
|
|
- nightly
|
2015-09-26 09:56:15 +00:00
|
|
|
|
2016-03-08 16:02:34 +00:00
|
|
|
node_js:
|
|
|
|
- "5"
|
|
|
|
|
2015-09-26 09:56:15 +00:00
|
|
|
env:
|
2016-09-09 19:30:13 +00:00
|
|
|
- DB=mysql
|
|
|
|
- DB=pgsql
|
|
|
|
- DB=sqlite
|
2015-03-27 18:58:48 +00:00
|
|
|
|
|
|
|
matrix:
|
2015-03-27 23:23:25 +00:00
|
|
|
fast_finish: true
|
2016-03-20 20:10:17 +00:00
|
|
|
include:
|
2018-10-24 19:02:35 +00:00
|
|
|
- php: 7.2
|
2016-10-04 08:25:49 +00:00
|
|
|
env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
|
2015-03-27 23:23:25 +00:00
|
|
|
allow_failures:
|
2016-08-17 09:40:35 +00:00
|
|
|
- php: nightly
|
2015-01-31 08:15:51 +00:00
|
|
|
|
2016-02-24 12:47:54 +00:00
|
|
|
# exclude v1 branches
|
2015-01-19 12:37:32 +00:00
|
|
|
branches:
|
2016-02-24 12:47:54 +00:00
|
|
|
except:
|
2016-04-18 19:46:36 +00:00
|
|
|
- legacy
|
2015-03-27 23:23:25 +00:00
|
|
|
|
2018-11-23 20:48:35 +00:00
|
|
|
before_install:
|
|
|
|
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
|
|
|
|
|
|
|
|
install:
|
|
|
|
- if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi;
|
|
|
|
- if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi;
|
|
|
|
- if [[ $ASSETS = build ]]; then yarn install; fi;
|
|
|
|
|
2015-09-26 09:56:15 +00:00
|
|
|
before_script:
|
2016-06-03 12:24:54 +00:00
|
|
|
- PHP=$TRAVIS_PHP_VERSION
|
2018-12-05 13:29:46 +00:00
|
|
|
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
|
|
|
- phpenv config-rm xdebug.ini || echo "xdebug not available"
|
2016-01-21 07:59:58 +00:00
|
|
|
- composer self-update --no-progress
|
2019-05-10 13:47:47 +00:00
|
|
|
# install imagick
|
|
|
|
- pear config-set preferred_state beta
|
|
|
|
- pecl channel-update pecl.php.net
|
|
|
|
- yes | pecl install imagick
|
2016-02-27 10:26:09 +00:00
|
|
|
|
2015-01-31 08:15:51 +00:00
|
|
|
script:
|
2018-11-23 20:48:35 +00:00
|
|
|
- travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
|
2018-12-05 13:29:46 +00:00
|
|
|
|
2017-11-04 20:14:11 +00:00
|
|
|
- echo "travis_fold:start:prepare"
|
2019-01-23 12:47:51 +00:00
|
|
|
- make prepare DB=$DB
|
2017-11-05 13:02:46 +00:00
|
|
|
- echo "travis_fold:end:prepare"
|
2017-05-19 09:41:10 +00:00
|
|
|
|
2018-10-24 19:02:35 +00:00
|
|
|
- make fixtures
|
2017-05-19 09:41:10 +00:00
|
|
|
|
2018-11-27 09:29:11 +00:00
|
|
|
- if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then SYMFONY_PHPUNIT_VERSION=6.5 ./bin/simple-phpunit -v ; fi;
|
2019-01-17 13:28:05 +00:00
|
|
|
# PHPStan needs PHPUnit to be installed and cache app to be generated
|
|
|
|
- if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then php bin/phpstan analyse src tests --no-progress --level 1 ; fi;
|
2017-07-03 05:30:54 +00:00
|
|
|
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
|
2016-09-09 19:30:13 +00:00
|
|
|
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
|
2016-10-19 18:10:42 +00:00
|
|
|
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;
|
2016-11-20 21:24:48 +00:00
|
|
|
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/UserBundle/Resources/translations -v ; fi;
|
2017-05-01 10:43:20 +00:00
|
|
|
- if [[ $ASSETS = build ]]; then yarn run build:prod; fi;
|