open-vault/.circleci/config/jobs/pre-flight-checks.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2021-06-25 16:17:05 +00:00
description: Ensure nothing obvious is broken, and pre-cache Go modules.
executor: go-machine
steps:
2021-06-25 16:17:05 +00:00
# Setup Go enabling the proxy for downloading modules.
- setup-go:
GOPROXY: https://proxy.golang.org,direct
- checkout
- run:
name: Install CircleCI CLI
environment:
ARCH: linux_amd64
BASE: https://github.com/CircleCI-Public/circleci-cli/releases/download
command: |
2021-06-25 16:17:05 +00:00
export CCI_PATH=/tmp/circleci-cli/$CIRCLECI_CLI_VERSION
mkdir -p $CCI_PATH
2021-06-25 16:17:05 +00:00
NAME=circleci-cli_${CIRCLECI_CLI_VERSION}_${ARCH}
URL=$BASE/v${CIRCLECI_CLI_VERSION}/${NAME}.tar.gz
curl -sSL $URL \
| tar --overwrite --strip-components=1 -xz -C $CCI_PATH "${NAME}/circleci"
# Add circleci to the path for subsequent steps.
echo "export PATH=$CCI_PATH:\$PATH" >> $BASH_ENV
# Done, print some debug info.
set -x
. $BASH_ENV
which circleci
circleci version
- run:
name: Verify CircleCI
command: |
set -x
. $BASH_ENV
make ci-verify
2021-06-25 16:17:05 +00:00
- configure-git
- refresh_go_mod_cache