Browse Source

ci: Setup abci in dependency step

pull/1796/head
Alexander Simmerl 7 years ago
parent
commit
3ff3a8ec37
No known key found for this signature in database GPG Key ID: 4694E95C9CC61BDA
2 changed files with 4 additions and 37 deletions
  1. +3
    -36
      .circleci/config.yml
  2. +1
    -1
      test/test_cover.sh

+ 3
- 36
.circleci/config.yml 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:


+ 1
- 1
test/test_cover.sh 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


Loading…
Cancel
Save