rector/.travis.yml
Tomas Votruba 2788a7c3e4 naming
2018-08-21 00:28:20 +02:00

46 lines
1.0 KiB
YAML

language: php
matrix:
include:
- php: 7.1
env: STATIC_ANALYSIS=true RUN_RECTOR=true MONOREPO_SPLIT=true
- php: 7.1
env: COMPOSER_FLAGS="--prefer-lowest"
install:
- composer update $COMPOSER_FLAGS
before_script:
- phpenv config-rm xdebug.ini
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
# disable xdebug
- phpenv config-rm xdebug.ini || return 0
- |
if [[ $STATIC_ANALYSIS == true ]]; then
composer check-cs
composer phpstan
fi
# Rector demo run
- |
if [[ $RUN_RECTOR == true ]]; then
bin/rector process src tests --level symfony40 --dry-run
bin/rector generate-rector-overview >> rector-overview.md
fi
after_script:
# split monorepo to packages - only on merge to master + publish prefixed version
- |
if [[ $TRAVIS_EVENT_TYPE == "push" && $MONOREPO_SPLIT == true && $TRAVIS_BRANCH == "master" ]]; then
vendor/bin/monorepo-builder split -v
composer rector-prefixed
fi
cache:
directories:
- $HOME/.composer/cache
notifications:
email: never