mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
47 lines
1.0 KiB
YAML
47 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"
|
|
- php: 7.2
|
|
|
|
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 --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: false
|