travis: add standlane install test run

This commit is contained in:
Tomas Votruba 2018-11-04 22:11:43 +01:00
parent 539c4e7890
commit 3d676033ef

View File

@ -8,6 +8,8 @@ matrix:
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.2
env: COVERAGE=true
- php: 7.2
env: STANDALONE=true
install:
- composer update $COMPOSER_FLAGS
@ -32,6 +34,29 @@ script:
bin/rector generate-rector-overview >> rector-overview.md
fi
# Run standalone install in non-root package, ref https://github.com/rectorphp/rector/issues/732
- |
if [[ $STANDALONE == true ]]; then
# 1. install locally
mkdir test-paths
cd test-paths
mkdir rector-dir
composer require rector/rector -d rector-dir
mkdir laravel-dir
composer create-project laravel/framework laravel-dir
composer dump-autoload --no-dev -d laravel-dir
# 2. run an nother project
rector-dir/vendor/bin/rector
cd laravel-dir
../rector-dir/vendor/bin/rector
../rector-dir/vendor/bin/rector process src --level code-quality
fi
after_script:
# Coverage
- |