mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
Merge pull request #7438 from hashicorp/dnephin/remove-restore-cache
ci: Remove consul-modcache-v1 from ci config
This commit is contained in:
commit
6a29a2b48a
@ -39,15 +39,8 @@ jobs:
|
|||||||
- image: *GOLANG_IMAGE
|
- image: *GOLANG_IMAGE
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
- run:
|
- run:
|
||||||
command: go mod download
|
command: go mod download
|
||||||
- save_cache:
|
|
||||||
key: consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
paths:
|
|
||||||
- /go/pkg/mod
|
|
||||||
- run:
|
- run:
|
||||||
name: check go fmt
|
name: check go fmt
|
||||||
command: |
|
command: |
|
||||||
@ -73,15 +66,8 @@ jobs:
|
|||||||
<<: *ENVIRONMENT
|
<<: *ENVIRONMENT
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
- run:
|
- run:
|
||||||
command: make update-vendor
|
command: make update-vendor
|
||||||
- save_cache:
|
|
||||||
key: consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
paths:
|
|
||||||
- /go/pkg/mod
|
|
||||||
- run: |
|
- run: |
|
||||||
if ! git diff --exit-code; then
|
if ! git diff --exit-code; then
|
||||||
echo "Git directory has vendor changes"
|
echo "Git directory has vendor changes"
|
||||||
@ -99,9 +85,6 @@ jobs:
|
|||||||
GOMAXPROCS: 2 # medium (default) boxes are 2 vCPUs, 4GB RAM https://circleci.com/docs/2.0/configuration-reference/#docker-executor
|
GOMAXPROCS: 2 # medium (default) boxes are 2 vCPUs, 4GB RAM https://circleci.com/docs/2.0/configuration-reference/#docker-executor
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache: # restore cache from earlier job
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /go/bin
|
at: /go/bin
|
||||||
- run: mkdir -p $TEST_RESULTS_DIR
|
- run: mkdir -p $TEST_RESULTS_DIR
|
||||||
@ -133,9 +116,6 @@ jobs:
|
|||||||
GOTAGS: "" # No tags for OSS but there are for enterprise
|
GOTAGS: "" # No tags for OSS but there are for enterprise
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache: # restore cache from dev-build job
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /go/bin
|
at: /go/bin
|
||||||
- run: mkdir -p $TEST_RESULTS_DIR
|
- run: mkdir -p $TEST_RESULTS_DIR
|
||||||
@ -165,9 +145,6 @@ jobs:
|
|||||||
GOTAGS: "" # No tags for OSS but there are for enterprise
|
GOTAGS: "" # No tags for OSS but there are for enterprise
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache: # restore cache from dev-build job
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /go/bin
|
at: /go/bin
|
||||||
- run: mkdir -p $TEST_RESULTS_DIR
|
- run: mkdir -p $TEST_RESULTS_DIR
|
||||||
@ -219,9 +196,6 @@ jobs:
|
|||||||
<<: *ENVIRONMENT
|
<<: *ENVIRONMENT
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache: # restore cache from dev-build job
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
- run: ./build-support/scripts/build-local.sh
|
- run: ./build-support/scripts/build-local.sh
|
||||||
|
|
||||||
# save dev build to CircleCI
|
# save dev build to CircleCI
|
||||||
@ -283,15 +257,8 @@ jobs:
|
|||||||
<<: *ENVIRONMENT
|
<<: *ENVIRONMENT
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
- run:
|
- run:
|
||||||
command: make dev
|
command: make dev
|
||||||
- save_cache:
|
|
||||||
key: consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
paths:
|
|
||||||
- /go/pkg/mod
|
|
||||||
|
|
||||||
# save dev build to pass to downstream jobs
|
# save dev build to pass to downstream jobs
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
@ -618,9 +585,6 @@ jobs:
|
|||||||
- run: mkdir -p $TEST_RESULTS_DIR
|
- run: mkdir -p $TEST_RESULTS_DIR
|
||||||
# Gather deps to run go tests
|
# Gather deps to run go tests
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- consul-modcache-v1-{{ checksum "go.mod" }}
|
|
||||||
# Run go tests
|
# Run go tests
|
||||||
- run: make test-vault-ca-provider
|
- run: make test-vault-ca-provider
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user