Skip to content

Instantly share code, notes, and snippets.

@jameskraus
Last active March 10, 2017 14:26
Show Gist options
  • Select an option

  • Save jameskraus/b26d623f84fd7ae68dd915e0baaa6dd8 to your computer and use it in GitHub Desktop.

Select an option

Save jameskraus/b26d623f84fd7ae68dd915e0baaa6dd8 to your computer and use it in GitHub Desktop.

Revisions

  1. jameskraus revised this gist Mar 10, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions composer-update-with-test.sh
    Original file line number Diff line number Diff line change
    @@ -3,5 +3,5 @@ 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""\0" }' |
    xargs -0 bash -c
    awk '{ print "composer update " $1 " && yarn test || exit 255""\0" }' |
    xargs -n 1 -0 bash -c
  2. jameskraus created this gist Mar 10, 2017.
    7 changes: 7 additions & 0 deletions composer-update-with-test.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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""\0" }' |
    xargs -0 bash -c