-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #697 from cosmos/release/v0.12.0
Release/v0.12.0
- Loading branch information
Showing
133 changed files
with
8,905 additions
and
2,127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: /go/src/github.com/cosmos/cosmos-sdk | ||
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 build | ||
- 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/cosmos/cosmos-sdk | ||
|
||
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 tests | ||
command: | | ||
for pkg in $(go list github.com/cosmos/cosmos-sdk/... | 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 | ||
- upload_coverage: | ||
requires: | ||
- test_cover | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- Thanks for filing a PR! Before hitting the button, please check the following items.--> | ||
|
||
* [ ] Updated all relevant documentation in docs | ||
* [ ] Updated all code comments where relevant | ||
* [ ] Wrote tests | ||
* [ ] Updated CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.