ensure submodules are initialized

This commit is contained in:
laser 2020-04-01 16:11:32 -07:00
parent c694853ddb
commit 5874d90719

View File

@ -7,12 +7,15 @@ executors:
- image: circleci/golang:1.13
resource_class: 2xlarge
commands:
prepare-git-checkout:
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init --recursive
install-build-dependencies:
steps:
- run: sudo apt-get update
- run: sudo apt-get install -y jq ocl-icd-opencl-dev
- run: git submodule sync
- run: git submodule update --init --recursive
- run: ./extern/filecoin-ffi/install-filcrypto
download-groth-params-and-verifying-keys:
steps:
@ -39,27 +42,27 @@ jobs:
environment:
RUST_LOG: info
steps:
- checkout
- prepare-git-checkout
- install-build-dependencies
- download-groth-params-and-verifying-keys
- run: go test -v -timeout 10m ./...
mod-tidy-check:
executor: golang
steps:
- checkout
- prepare-git-checkout
- go/mod-download
- go/mod-tidy-check
gofmt-check:
executor: golang
steps:
- checkout
- prepare-git-checkout
- go/mod-download
- run:
command: "! go fmt ./... 2>&1 | read"
lint-check:
executor: golang
steps:
- checkout
- prepare-git-checkout
- go/mod-download
- go/install-golangci-lint:
gobin: $HOME/.local/bin