2020-09-25 20:23:53 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# This is a presubmit (on-merge) CI script.
|
|
|
|
# Currently no CI runs it - so be a good cyborg, and run it before submitting
|
|
|
|
# changes to hscloud.
|
|
|
|
|
|
|
|
set -e -o pipefail
|
|
|
|
|
2021-10-16 18:58:30 +00:00
|
|
|
# Build some things that should always build - ie. critical codebases.
|
|
|
|
bazel build //tools/... //cluster/...
|
2020-09-25 20:23:53 +00:00
|
|
|
|
2021-10-16 18:58:30 +00:00
|
|
|
# Run some critical tools that are needed to access clusters.
|
2020-09-25 20:23:53 +00:00
|
|
|
bazel run //cluster/clustercfg smoketest
|
2021-10-16 18:58:30 +00:00
|
|
|
bazel run //cluster/tools:kubectl -- version --client=true
|
|
|
|
bazel run //cluster/tools:kubecfg -- version
|
|
|
|
bazel run //cluster/prodaccess -- --help 2>/dev/null
|
2020-11-27 09:42:59 +00:00
|
|
|
|