mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-13 20:36:23 +01:00
* [downgrade] simplify to 2 configs * rename downgrade_packages.sh to downgrade_rector_to_php71.sh * add test case stub * [CI] add linter for php code * [CI] update tagged workflow * update for covariance * [ci-review] Rector Rectify Co-authored-by: kaizen-ci <info@kaizen-ci.org>
22 lines
564 B
Bash
22 lines
564 B
Bash
#!/bin/sh -l
|
|
|
|
# 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
|