Skip to content

Instantly share code, notes, and snippets.

@jameskraus
Last active March 10, 2017 14:26
Show Gist options
  • Save jameskraus/b26d623f84fd7ae68dd915e0baaa6dd8 to your computer and use it in GitHub Desktop.
Save jameskraus/b26d623f84fd7ae68dd915e0baaa6dd8 to your computer and use it in GitHub Desktop.
Update Composer Dependencies and Run Tests After Each Dependency
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