mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
22 lines
571 B
Bash
22 lines
571 B
Bash
#!/usr/bin/env bash
|
|
|
|
# see https://stackoverflow.com/questions/66644233/how-to-propagate-colors-from-bash-script-to-github-action?noredirect=1#comment117811853_66644233
|
|
export TERM=xterm-color
|
|
|
|
# show errors
|
|
set -e
|
|
|
|
# script fails if trying to access to an undefined variable
|
|
set -u
|
|
|
|
|
|
|
|
|
|
composer install --no-dev --ansi
|
|
|
|
rsync --exclude rector-build -av * rector-build --quiet
|
|
rm -rf rector-build/packages-tests rector-build/rules-tests rector-build/tests
|
|
|
|
sh build/downgrade-rector.sh rector-build
|
|
sh build/build-rector-scoped.sh rector-build rector-prefixed-downgraded
|