forked from hswaw/hscloud
ci_presubmit: don't rely on tools/install.sh and hscloud_root
Let's make things simpler and just build/run stuff that we deem critical. Change-Id: I356efaac4c8af276aaaa0a141a70f35da19c6957 Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1166 Reviewed-by: q3k <q3k@hackerspace.pl>
This commit is contained in:
parent
f1dc4d87d8
commit
f3e6f8f3d7
1 changed files with 6 additions and 13 deletions
|
@ -6,19 +6,12 @@
|
||||||
|
|
||||||
set -e -o pipefail
|
set -e -o pipefail
|
||||||
|
|
||||||
if [ -z "$hscloud_root" ]; then
|
# Build some things that should always build - ie. critical codebases.
|
||||||
echo 2>&1 "Please first source env.sh"
|
bazel build //tools/... //cluster/...
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd $hscloud_root
|
# Run some critical tools that are needed to access clusters.
|
||||||
|
|
||||||
# Test critical tools.
|
|
||||||
tools/install.sh
|
|
||||||
kubectl version --client=true
|
|
||||||
kubecfg version
|
|
||||||
prodaccess --help 2>/dev/null
|
|
||||||
bazel run //cluster/clustercfg smoketest
|
bazel run //cluster/clustercfg smoketest
|
||||||
|
bazel run //cluster/tools:kubectl -- version --client=true
|
||||||
|
bazel run //cluster/tools:kubecfg -- version
|
||||||
|
bazel run //cluster/prodaccess -- --help 2>/dev/null
|
||||||
|
|
||||||
# Test critical services.
|
|
||||||
bazel build //cluster/prodvider
|
|
||||||
|
|
Loading…
Reference in a new issue