all.bash 325 B

12345678910111213141516
  1. #!/bin/bash
  2. go test || exit
  3. for action in $@; do go $action; done
  4. mkdir -p bin
  5. find regretable examples/* ext/* -maxdepth 0 -type d | while read d; do
  6. (cd $d
  7. go build -o ../../bin/$(basename $d)
  8. find *_test.go -maxdepth 0 2>/dev/null|while read f;do
  9. for action in $@; do go $action; done
  10. go test
  11. break
  12. done)
  13. done