Files
cloudflared/vendor/zombiezen.com/go/capnproto2/_travis/build.bash
2018-07-19 15:02:24 -05:00

20 lines
347 B
Bash
Executable File

#!/bin/bash
must() {
echo "$@" 1>&2
"$@" || die "FAIL"
}
die() {
echo "$@" 1>&2
exit 1
}
if [[ -z "$USE_BAZEL" || "$USE_BAZEL" -eq "0" ]]; then
must go test -v ./...
else
# On Travis, this will use "$HOME/bin/bazel", but don't assume this
# for local testing of the CI script.
must bazel --bazelrc=_travis/bazelrc test //...
fi