Last active
March 10, 2017 14:26
-
-
Save jameskraus/b26d623f84fd7ae68dd915e0baaa6dd8 to your computer and use it in GitHub Desktop.
Update Composer Dependencies and Run Tests After Each Dependency
This file contains 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
grep '".*": ".*"' composer.json | | |
sed -E 's/[ \t]+//' | | |
sed -E 's/"[^\/]+": ".*",?//' | | |
sed '/.*\\.*/d' | sed -E '/^\s*$/d' | | |
sed -E 's/: ".*",?//' | sed -E 's/"//g' | | |
awk '{ print "composer update " $1 " && yarn test || exit 255""\0" }' | | |
xargs -n 1 -0 bash -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment