Merge branch 'develop' into adrian/genesis_bytes
This commit is contained in:
commit
063a7d83c1
|
@ -0,0 +1,121 @@
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
defaults: &defaults
|
||||||
|
working_directory: /go/src/github.com/tendermint/abci
|
||||||
|
docker:
|
||||||
|
- image: circleci/golang:1.10.0
|
||||||
|
environment:
|
||||||
|
GOBIN: /tmp/workspace/bin
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup_dependencies:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- run: mkdir -p /tmp/workspace/bin
|
||||||
|
- run: mkdir -p /tmp/workspace/profiles
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- v1-pkg-cache
|
||||||
|
- run:
|
||||||
|
name: tools
|
||||||
|
command: |
|
||||||
|
export PATH="$GOBIN:$PATH"
|
||||||
|
make get_tools
|
||||||
|
- run:
|
||||||
|
name: dependencies
|
||||||
|
command: |
|
||||||
|
export PATH="$GOBIN:$PATH"
|
||||||
|
make get_vendor_deps
|
||||||
|
- run:
|
||||||
|
name: binaries
|
||||||
|
command: |
|
||||||
|
export PATH="$GOBIN:$PATH"
|
||||||
|
make install
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: /tmp/workspace
|
||||||
|
paths:
|
||||||
|
- bin
|
||||||
|
- profiles
|
||||||
|
- save_cache:
|
||||||
|
key: v1-pkg-cache
|
||||||
|
paths:
|
||||||
|
- /go/pkg
|
||||||
|
- save_cache:
|
||||||
|
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
paths:
|
||||||
|
- /go/src/github.com/tendermint/abci
|
||||||
|
|
||||||
|
test_integration:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-pkg-cache
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- run:
|
||||||
|
name: Run integration tests
|
||||||
|
command: |
|
||||||
|
find . -path ./vendor -prune -o -name "*.sock" -exec rm {} \;
|
||||||
|
bash tests/test.sh
|
||||||
|
|
||||||
|
test_cover:
|
||||||
|
<<: *defaults
|
||||||
|
parallelism: 4
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-pkg-cache
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- run:
|
||||||
|
name: Run test cover
|
||||||
|
command: |
|
||||||
|
for pkg in $(go list github.com/tendermint/abci/... | grep -v /vendor/ | circleci tests split --split-by=timings); do
|
||||||
|
id=$(basename "$pkg")
|
||||||
|
go test -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg"
|
||||||
|
done
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: /tmp/workspace
|
||||||
|
paths:
|
||||||
|
- "profiles/*"
|
||||||
|
|
||||||
|
upload_coverage:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- run:
|
||||||
|
name: gather
|
||||||
|
command: |
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
echo "mode: atomic" > coverage.txt
|
||||||
|
for prof in $(ls /tmp/workspace/profiles/); do
|
||||||
|
tail -n +2 /tmp/workspace/profiles/"$prof" >> coverage.txt
|
||||||
|
done
|
||||||
|
- run:
|
||||||
|
name: upload
|
||||||
|
command: bash <(curl -s https://codecov.io/bash) -f coverage.txt
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
test-suite:
|
||||||
|
jobs:
|
||||||
|
- setup_dependencies
|
||||||
|
- test_cover:
|
||||||
|
requires:
|
||||||
|
- setup_dependencies
|
||||||
|
- test_integration:
|
||||||
|
requires:
|
||||||
|
- setup_dependencies
|
||||||
|
- upload_coverage:
|
||||||
|
requires:
|
||||||
|
- test_integrations
|
||||||
|
|
||||||
|
|
21
circle.yml
21
circle.yml
|
@ -1,21 +0,0 @@
|
||||||
machine:
|
|
||||||
environment:
|
|
||||||
GOPATH: /home/ubuntu/.go_workspace
|
|
||||||
REPO: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
|
||||||
hosts:
|
|
||||||
circlehost: 127.0.0.1
|
|
||||||
localhost: 127.0.0.1
|
|
||||||
|
|
||||||
checkout:
|
|
||||||
post:
|
|
||||||
- rm -rf $REPO
|
|
||||||
- mkdir -p $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
|
|
||||||
- mv $HOME/$CIRCLE_PROJECT_REPONAME $REPO
|
|
||||||
- go version
|
|
||||||
|
|
||||||
test:
|
|
||||||
override:
|
|
||||||
- cd $REPO && make get_tools check get_vendor_deps install test_integrations
|
|
||||||
post:
|
|
||||||
- cd "$REPO" && bash <(curl -s https://codecov.io/bash) -f coverage.txt
|
|
||||||
- cd "$REPO" && mv coverage.txt "${CIRCLE_ARTIFACTS}"
|
|
|
@ -1,5 +1,5 @@
|
||||||
Specification
|
ABCI Specification
|
||||||
=============
|
==================
|
||||||
|
|
||||||
Message Types
|
Message Types
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
|
@ -4,6 +4,6 @@ package version
|
||||||
|
|
||||||
const Maj = "0"
|
const Maj = "0"
|
||||||
const Min = "10"
|
const Min = "10"
|
||||||
const Fix = "3"
|
const Fix = "4"
|
||||||
|
|
||||||
const Version = "0.10.3"
|
const Version = "0.10.4-dev"
|
||||||
|
|
Loading…
Reference in New Issue