2020-06-18 14:49:13 +07:00
|
|
|
#!/usr/bin/env bash
|
2019-12-27 18:07:53 +07:00
|
|
|
|
|
|
|
set +u
|
|
|
|
|
2020-03-09 12:53:13 +07:00
|
|
|
git fetch -q
|
|
|
|
|
2021-06-26 08:45:21 +07:00
|
|
|
if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] || \
|
|
|
|
[[ "${BUILDKITE_COMMAND}" == ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" ]]; then
|
2019-12-27 18:07:53 +07:00
|
|
|
echo "--- :buildkite: Setting up Build environment"
|
|
|
|
source bootstrap.sh
|
2021-06-26 08:45:21 +07:00
|
|
|
if [[ "${BUILDKITE_COMMAND}" == "authelia-scripts --log-level debug ci" ]]; then
|
2019-12-27 18:07:53 +07:00
|
|
|
go mod download
|
|
|
|
fi
|
2021-06-26 08:45:21 +07:00
|
|
|
if [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
|
2019-12-27 18:07:53 +07:00
|
|
|
go mod download
|
|
|
|
fi
|
|
|
|
fi
|