hscloud/ci_presubmit.sh
Serge Bazanski e7fca3acd8 ci_presubmit: init
This will be, at some point, a script to run on Gerrit presubmit (ie.
right before merge).

For now, you can manually run it to ensure that Everything At Least
Kinda Works.

Change-Id: I28b305fa81a4ca4a8e94ce4daa06fe9ae0184fe8
2020-09-25 21:15:07 +00:00

21 lines
451 B
Bash
Executable file

#!/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
if [ -z "$hscloud_root" ]; then
echo 2>&1 "Please first source env.sh"
exit 1
fi
cd $hscloud_root
# Test critical tools.
tools/install.sh
kubectl version --client=true
kubecfg version
prodaccess --help 2>/dev/null
bazel run //cluster/clustercfg smoketest