2019-12-27 11:07:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set +u
|
|
|
|
|
2020-01-19 23:53:55 +00:00
|
|
|
if [[ ! $BUILDKITE_COMMAND =~ "buildkite-agent pipeline upload" ]] || \
|
2020-01-30 07:37:11 +00:00
|
|
|
[[ $BUILDKITE_COMMAND == ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" ]]; then
|
2019-12-27 11:07:53 +00:00
|
|
|
echo "--- :buildkite: Setting up Build environment"
|
|
|
|
source bootstrap.sh
|
2020-01-30 07:37:11 +00:00
|
|
|
if [[ $BUILDKITE_COMMAND == "authelia-scripts --log-level debug ci" ]]; then
|
2019-12-27 11:07:53 +00:00
|
|
|
go mod download
|
|
|
|
fi
|
2020-01-30 07:37:11 +00:00
|
|
|
if [[ $BUILDKITE_LABEL =~ ":selenium:" ]]; then
|
2019-12-27 11:07:53 +00:00
|
|
|
go mod download
|
|
|
|
fi
|
|
|
|
fi
|