2020-06-18 07:49:13 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-12-27 11:07:53 +00:00
|
|
|
|
|
|
|
set +u
|
|
|
|
|
2020-03-09 05:53:13 +00:00
|
|
|
git fetch -q
|
|
|
|
|
2021-06-26 01:45:21 +00:00
|
|
|
if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] || \
|
|
|
|
[[ "${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"
|
2021-09-28 06:27:06 +00:00
|
|
|
if [[ "${BUILDKITE_LABEL}" == ":hammer_and_wrench: Unit Test" ]]; then
|
|
|
|
nohup docker pull authelia/crossbuild -q &
|
2019-12-27 11:07:53 +00:00
|
|
|
fi
|
2021-09-28 06:27:06 +00:00
|
|
|
source bootstrap.sh
|
|
|
|
if [[ "${BUILDKITE_LABEL}" == ":hammer_and_wrench: Unit Test" ]] || [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
|
2019-12-27 11:07:53 +00:00
|
|
|
go mod download
|
|
|
|
fi
|
|
|
|
fi
|