1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00
prometheus-operator/scripts/jenkins/make-test.sh
Max Leonard Inden 234b53ef58
test: Clean up Jenkins test execution
* Move `make generate` test to separate script
* Move push to quay step to separate script
* Move unit test step to separate script
* Remove helper docker images after usage on every step
* Remove prometheus-operator image after tests
2017-06-08 21:24:26 +02:00

15 lines
410 B
Bash
Executable file

#!/usr/bin/env bash
# exit immediately when a command fails
set -e
# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail
# error on unset variables
set -u
# print each command before executing it
set -x
docker run \
--rm \
-v $PWD:/go/src/github.com/coreos/prometheus-operator \
-w /go/src/github.com/coreos/prometheus-operator \
golang make test