ci: Setup abci in dependency step

This commit is contained in:
Alexander Simmerl
2018-06-22 19:18:11 +02:00
parent a605b66c5a
commit 3ff3a8ec37
2 changed files with 4 additions and 37 deletions

View File

@@ -32,6 +32,7 @@ jobs:
command: |
export PATH="$GOBIN:$PATH"
make install
cd abci && make install
- persist_to_workspace:
root: /tmp/workspace
paths:
@@ -46,37 +47,6 @@ jobs:
paths:
- /go/src/github.com/tendermint/tendermint
setup_abci:
<<: *defaults
steps:
- attach_workspace:
at: /tmp/workspace
- restore_cache:
key: v2-pkg-cache
- restore_cache:
key: v2-tree-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: Checkout abci
command: |
commit=$(bash scripts/dep_utils/parse.sh abci)
go get -v -u -d github.com/tendermint/abci/...
cd /go/src/github.com/tendermint/abci
git checkout "$commit"
- run:
working_directory: /go/src/github.com/tendermint/abci
name: Install abci
command: |
set -ex
export PATH="$GOBIN:$PATH"
make get_tools
make get_vendor_deps
make install
- run: ls -lah /tmp/workspace/bin
- persist_to_workspace:
root: /tmp/workspace
paths:
- "bin/abci*"
build_slate:
<<: *defaults
steps:
@@ -199,21 +169,18 @@ workflows:
test-suite:
jobs:
- setup_dependencies
- setup_abci:
requires:
- setup_dependencies
- lint:
requires:
- setup_dependencies
- test_apps:
requires:
- setup_abci
- setup_dependencies
- test_cover:
requires:
- setup_dependencies
- test_persistence:
requires:
- setup_abci
- setup_dependencies
- test_p2p
- upload_coverage:
requires:

View File

@@ -6,7 +6,7 @@ set -e
echo "mode: atomic" > coverage.txt
for pkg in ${PKGS[@]}; do
go test -v -timeout 30m -race -coverprofile=profile.out -covermode=atomic "$pkg"
go test -timeout 5m -race -coverprofile=profile.out -covermode=atomic "$pkg"
if [ -f profile.out ]; then
tail -n +2 profile.out >> coverage.txt;
rm profile.out