mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 23:49:57 +00:00
20 lines
347 B
Bash
Executable File
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
|