|
@ -48,10 +48,10 @@ jobs: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
paths: |
|
|
paths: |
|
|
- /go/pkg |
|
|
- /go/pkg |
|
|
# - save_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
# paths: |
|
|
|
|
|
# - /go/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
- save_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
paths: |
|
|
|
|
|
- /go/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
build_slate: |
|
|
build_slate: |
|
|
<<: *defaults |
|
|
<<: *defaults |
|
@ -60,23 +60,8 @@ jobs: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
# https://discuss.circleci.com/t/saving-cache-stopped-working-warning-skipping-this-step-disabled-in-configuration/24423/2 |
|
|
|
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: |
|
|
- run: |
|
|
name: slate docs |
|
|
name: slate docs |
|
|
command: | |
|
|
command: | |
|
@ -91,29 +76,14 @@ jobs: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
make get_dev_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: |
|
|
- run: |
|
|
name: metalinter |
|
|
name: metalinter |
|
|
command: | |
|
|
command: | |
|
|
set -ex |
|
|
set -ex |
|
|
export PATH="$GOBIN:$PATH" |
|
|
export PATH="$GOBIN:$PATH" |
|
|
make metalinter |
|
|
|
|
|
|
|
|
make lint |
|
|
- run: |
|
|
- run: |
|
|
name: check_dep |
|
|
name: check_dep |
|
|
command: | |
|
|
command: | |
|
@ -128,22 +98,8 @@ jobs: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: |
|
|
- run: |
|
|
name: Run abci apps tests |
|
|
name: Run abci apps tests |
|
|
command: | |
|
|
command: | |
|
@ -159,22 +115,8 @@ jobs: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: |
|
|
- run: |
|
|
name: Run abci-cli tests |
|
|
name: Run abci-cli tests |
|
|
command: | |
|
|
command: | |
|
@ -188,22 +130,8 @@ jobs: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: sudo apt-get update && sudo apt-get install -y --no-install-recommends bsdmainutils |
|
|
- run: sudo apt-get update && sudo apt-get install -y --no-install-recommends bsdmainutils |
|
|
- run: |
|
|
- run: |
|
|
name: Run tests |
|
|
name: Run tests |
|
@ -217,22 +145,8 @@ jobs: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: mkdir -p /tmp/logs |
|
|
- run: mkdir -p /tmp/logs |
|
|
- run: |
|
|
- run: |
|
|
name: Run tests |
|
|
name: Run tests |
|
@ -256,22 +170,8 @@ jobs: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: v3-pkg-cache |
|
|
key: v3-pkg-cache |
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: |
|
|
- run: |
|
|
name: Run tests |
|
|
name: Run tests |
|
|
command: bash test/persist/test_failure_indices.sh |
|
|
command: bash test/persist/test_failure_indices.sh |
|
@ -317,22 +217,10 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
- attach_workspace: |
|
|
- attach_workspace: |
|
|
at: /tmp/workspace |
|
|
at: /tmp/workspace |
|
|
# - restore_cache: |
|
|
|
|
|
# key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: |
|
|
|
|
|
name: tools |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_tools |
|
|
|
|
|
- run: |
|
|
|
|
|
name: dependencies |
|
|
|
|
|
command: | |
|
|
|
|
|
export PATH="$GOBIN:$PATH" |
|
|
|
|
|
make get_vendor_deps |
|
|
|
|
|
- run: mkdir -p $GOPATH/src/github.com/tendermint |
|
|
|
|
|
- run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-pkg-cache |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} |
|
|
- run: |
|
|
- run: |
|
|
name: gather |
|
|
name: gather |
|
|
command: | |
|
|
command: | |
|
|