mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-20 15:08:11 +01:00
travis: add standlane install test run
This commit is contained in:
parent
539c4e7890
commit
3d676033ef
25
.travis.yml
25
.travis.yml
@ -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
|
||||
- |
|
||||
|
Loading…
x
Reference in New Issue
Block a user