Created
February 22, 2017 16:15
-
-
Save stefanotorresi/36eb549c9d58bc14c90c313b4d0cd222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
composer install --no-dev | |
for DEP in $(composer show -N); do | |
echo | |
echo "*** downgrading ${DEP} ***" | |
echo | |
composer update $DEP --prefer-lowest --prefer-stable | |
composer test | |
TEST_FAILED=$? | |
if [[ $TEST_FAILED -gt 0 ]]; then | |
echo | |
echo "*** test failed when downgrading ${DEP} ***" | |
echo | |
exit 1 | |
fi | |
composer update $DEP | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment