|
@ -36,7 +36,6 @@ commands: |
|
|
name: "Running test" |
|
|
name: "Running test" |
|
|
command: | |
|
|
command: | |
|
|
bash << parameters.script_path >> |
|
|
bash << parameters.script_path >> |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
setup_dependencies: |
|
|
setup_dependencies: |
|
|
executor: golang |
|
|
executor: golang |
|
@ -79,36 +78,6 @@ jobs: |
|
|
- run_test: |
|
|
- run_test: |
|
|
script_path: test/persist/test_failure_indices.sh |
|
|
script_path: test/persist/test_failure_indices.sh |
|
|
|
|
|
|
|
|
test_cover: |
|
|
|
|
|
executor: golang |
|
|
|
|
|
parallelism: 4 |
|
|
|
|
|
steps: |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
name: "Restore source code cache" |
|
|
|
|
|
keys: |
|
|
|
|
|
- go-src-v1-{{ .Revision }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
name: "Restore go module cache" |
|
|
|
|
|
keys: |
|
|
|
|
|
- go-mod-v2-{{ checksum "go.sum" }} |
|
|
|
|
|
- run: |
|
|
|
|
|
name: "Run tests" |
|
|
|
|
|
command: | |
|
|
|
|
|
export VERSION="$(git describe --tags --long | sed 's/v\(.*\)/\1/')" |
|
|
|
|
|
export GO111MODULE=on |
|
|
|
|
|
mkdir -p /tmp/logs /tmp/workspace/profiles |
|
|
|
|
|
for pkg in $(go list github.com/tendermint/tendermint/... | circleci tests split --split-by=timings); do |
|
|
|
|
|
id=$(basename "$pkg") |
|
|
|
|
|
go test -timeout 7m -mod=readonly -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log" |
|
|
|
|
|
done |
|
|
|
|
|
- persist_to_workspace: |
|
|
|
|
|
root: /tmp/workspace |
|
|
|
|
|
paths: |
|
|
|
|
|
- "profiles/*" |
|
|
|
|
|
- store_artifacts: |
|
|
|
|
|
path: /tmp/logs |
|
|
|
|
|
|
|
|
|
|
|
test_p2p: |
|
|
test_p2p: |
|
|
environment: |
|
|
environment: |
|
|
GOBIN: /home/circleci/.go_workspace/bin |
|
|
GOBIN: /home/circleci/.go_workspace/bin |
|
@ -127,31 +96,6 @@ jobs: |
|
|
- store_artifacts: |
|
|
- store_artifacts: |
|
|
path: /home/circleci/project/test/p2p/logs |
|
|
path: /home/circleci/project/test/p2p/logs |
|
|
|
|
|
|
|
|
upload_coverage: |
|
|
|
|
|
executor: golang |
|
|
|
|
|
steps: |
|
|
|
|
|
- attach_workspace: |
|
|
|
|
|
at: /tmp/workspace |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
name: "Restore source code cache" |
|
|
|
|
|
keys: |
|
|
|
|
|
- go-src-v1-{{ .Revision }} |
|
|
|
|
|
- checkout |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
name: "Restore go module cache" |
|
|
|
|
|
keys: |
|
|
|
|
|
- go-mod-v2-{{ checksum "go.sum" }} |
|
|
|
|
|
- run: |
|
|
|
|
|
name: gather |
|
|
|
|
|
command: | |
|
|
|
|
|
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 .circleci/codecov.sh -f coverage.txt |
|
|
|
|
|
|
|
|
|
|
|
deploy_docs: |
|
|
deploy_docs: |
|
|
executor: docs |
|
|
executor: docs |
|
|
steps: |
|
|
steps: |
|
@ -256,7 +200,6 @@ jobs: |
|
|
export GOOS=linux GOARCH=arm && python -u scripts/release_management/github-upload.py --id "${RELEASE_ID}" |
|
|
export GOOS=linux GOARCH=arm && python -u scripts/release_management/github-upload.py --id "${RELEASE_ID}" |
|
|
python -u scripts/release_management/github-upload.py --file "/tmp/workspace/SHA256SUMS" --id "${RELEASE_ID}" |
|
|
python -u scripts/release_management/github-upload.py --file "/tmp/workspace/SHA256SUMS" --id "${RELEASE_ID}" |
|
|
python -u scripts/release_management/github-publish.py --id "${RELEASE_ID}" |
|
|
python -u scripts/release_management/github-publish.py --id "${RELEASE_ID}" |
|
|
|
|
|
|
|
|
release_docker: |
|
|
release_docker: |
|
|
machine: |
|
|
machine: |
|
|
image: ubuntu-1604:201903-01 |
|
|
image: ubuntu-1604:201903-01 |
|
@ -274,7 +217,6 @@ jobs: |
|
|
docker login -u "${DOCKERHUB_USER}" --password-stdin \<<< "${DOCKERHUB_PASS}" |
|
|
docker login -u "${DOCKERHUB_USER}" --password-stdin \<<< "${DOCKERHUB_PASS}" |
|
|
docker push "tendermint/tendermint" |
|
|
docker push "tendermint/tendermint" |
|
|
docker logout |
|
|
docker logout |
|
|
|
|
|
|
|
|
reproducible_builds: |
|
|
reproducible_builds: |
|
|
executor: golang |
|
|
executor: golang |
|
|
steps: |
|
|
steps: |
|
@ -350,9 +292,6 @@ workflows: |
|
|
only: |
|
|
only: |
|
|
- docs-staging |
|
|
- docs-staging |
|
|
- setup_dependencies |
|
|
- setup_dependencies |
|
|
- test_cover: |
|
|
|
|
|
requires: |
|
|
|
|
|
- setup_dependencies |
|
|
|
|
|
- test_persistence: |
|
|
- test_persistence: |
|
|
requires: |
|
|
requires: |
|
|
- setup_dependencies |
|
|
- setup_dependencies |
|
@ -360,9 +299,6 @@ workflows: |
|
|
- test_p2p: |
|
|
- test_p2p: |
|
|
name: test_p2p_ipv6 |
|
|
name: test_p2p_ipv6 |
|
|
ipv: 6 |
|
|
ipv: 6 |
|
|
- upload_coverage: |
|
|
|
|
|
requires: |
|
|
|
|
|
- test_cover |
|
|
|
|
|
- reproducible_builds: |
|
|
- reproducible_builds: |
|
|
filters: |
|
|
filters: |
|
|
branches: |
|
|
branches: |
|
|