github.com/m3db/m3@v1.5.0/.buildkite/hooks/pre-command (about) 1 #!/bin/bash 2 3 set +u 4 5 echo "--- :golang: Setting up Golang build environment" 6 7 if [[ ! -z "${GIMME_GO_VERSION:-}" ]] && [[ "$GIMME_GO_VERSION" != "" ]]; then 8 eval "$(.ci/gimme.sh ${GIMME_GO_VERSION})" 9 else 10 echo "No \$GIMME_GO_VERSION set, skipping..." 11 fi 12 13 echo "--- :buildkite: :codecov: environment variables" 14 export CI="true" # required by codecov.sh 15 16 echo "--- Parallelism hooks" 17 if [[ "$BUILDKITE_PARALLEL_JOB" != "" ]]; then 18 export SPLIT_IDX=${BUILDKITE_PARALLEL_JOB} 19 fi 20 21 if [[ "$BUILDKITE_PARALLEL_JOB_COUNT" != "" ]]; then 22 export TOTAL_SPLITS=${BUILDKITE_PARALLEL_JOB_COUNT} 23 fi