mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-16 09:16:38 +00:00
* 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
15 lines
410 B
Bash
Executable file
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
|