2014-01-08 02:22:14 +04:00
|
|
|
#!/usr/bin/env bash
|
2014-02-05 04:23:27 +04:00
|
|
|
# Usage: script/test
|
2014-01-08 02:22:14 +04:00
|
|
|
#
|
2014-02-05 04:23:27 +04:00
|
|
|
# Run Go and Cucumber test suites for hub.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
"" )
|
|
|
|
;;
|
|
|
|
-h | --help )
|
|
|
|
sed -ne '/^#/!q;s/.\{1,2\}//;1d;p' < "$0"
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
"$0" --help >&2
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
STATUS=0
|
|
|
|
|
|
|
|
trap "exit 1" INT
|
|
|
|
|
|
|
|
script/build
|
|
|
|
script/build test || STATUS="$?"
|
|
|
|
script/ruby-test || STATUS="$?"
|
2013-10-11 07:32:46 +04:00
|
|
|
|
2014-02-05 04:23:27 +04:00
|
|
|
exit "$STATUS"
|