[READ ONLY MIRROR] Envoy REST/proto API definitions and documentation. (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
531 B

#!/bin/bash
# Run a CI build/test target, e.g. docs, asan.
set -e
. "$(dirname "$0")"/build_setup.sh
echo "building using ${NUM_CPUS} CPUs"
if [[ "$1" == "bazel.test" ]]; then
echo "bazel building and testing..."
bazel --batch build ${BAZEL_BUILD_OPTIONS} //api/...
bazel --batch test ${BAZEL_TEST_OPTIONS} //test/... //tools/...
exit 0
elif [[ "$1" == "bazel.docs" ]]; then
echo "generating docs..."
./docs/build.sh
else
echo "Invalid do_ci.sh target. The only valid targets are bazel.{docs,test}."
exit 1
fi