Cleanup readme, circleci

This commit is contained in:
Ethan Frey
2019-11-20 11:46:36 +01:00
parent b2086bb6b4
commit 01c371c855
2 changed files with 34 additions and 169 deletions

View File

@@ -93,41 +93,6 @@ jobs:
paths:
- "."
test-sim-nondeterminism:
executor: golang
steps:
- make:
target: test-sim-nondeterminism
description: "Test Gaia non-determinism simulations"
test-sim-import-export:
executor: golang
steps:
- make:
target: test-sim-import-export
description: "Test Gaia import/export simulation"
test-sim-after-import:
executor: golang
steps:
- make:
target: test-sim-after-import
description: "Test Gaia simulation after importing state"
test-sim-multi-seed-short:
executor: golang
steps:
- make:
target: test-sim-multi-seed-short
description: "Test Gaia multi-seed simulation (short-lived)"
test-sim-multi-seed-long:
executor: golang
steps:
- make:
target: test-sim-multi-seed-long
description: "Test Gaia multi-seed simulation (long-lived)"
integration-tests:
executor: golang
steps:
@@ -221,58 +186,7 @@ jobs:
make clean localnet-start
./contrib/localnet-blocks-test.sh 40 5 10 localhost
deploy-docs:
executor: docs
steps:
- checkout
- run:
name: Trigger website build
command: |
curl --silent \
--show-error \
-X POST \
--header "Content-Type: application/json" \
-d "{\"branch\": \"$CIRCLE_BRANCH\"}" \
"https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$WEBSITE_REPO_NAME/build?circle-token=$TENDERBOT_API_TOKEN" > response.json
RESULT=`jq -r '.status' response.json`
MESSAGE=`jq -r '.message' response.json`
if [[ ${RESULT} == "null" ]] || [[ ${RESULT} -ne "200" ]]; then
echo "CircleCI API call failed: $MESSAGE"
exit 1
else
echo "Website build started"
fi
macos-ci:
executor: mac
steps:
- mac_set_env
- run:
name: Install go
command: |
source $BASH_ENV
curl -L -O https://dl.google.com/go/go$GO_VERSION.darwin-amd64.tar.gz
tar -C $HOME -xzf go$GO_VERSION.darwin-amd64.tar.gz
rm go$GO_VERSION.darwin-amd64.tar.gz
go version
- checkout
- run:
name: Install SDK
command: |
source $BASH_ENV
make tools
make install
- run:
name: Integration tests
command: source $BASH_ENV
make test-build
- run:
name: Test full gaia simulation
command: |
source $BASH_ENV
make test-sim-gaia-fast
docker-image:
executor: golang
@@ -292,9 +206,9 @@ jobs:
if [ -z "${GAIAD_VERSION}" ]; then
docker build .
else
docker build -t tendermint/gaia:$GAIAD_VERSION .
docker build -t cosmwasm/wasmd:$GAIAD_VERSION .
docker login --password-stdin -u $DOCKER_USER \<<<$DOCKER_PASS
docker push tendermint/gaia:$GAIAD_VERSION
docker push cosmwasm/wasmd:$GAIAD_VERSION
fi
docker-tagged:
@@ -360,31 +274,19 @@ workflows:
version: 2
test-suite:
jobs:
- docker-image:
requires:
- setup-dependencies
- docker-tagged:
filters:
tags:
only:
- /^v.*/
branches:
ignore:
- /.*/
requires:
- setup-dependencies
- macos-ci:
filters:
branches:
only:
- master
- develop
- deploy-docs:
filters:
branches:
only:
- master
- develop
# - docker-image:
# requires:
# - setup-dependencies
# - docker-tagged:
# filters:
# tags:
# only:
# - /^v.*/
# branches:
# ignore:
# - /.*/
# requires:
# - setup-dependencies
- setup-dependencies:
# filters here are needed to enable this job also for tags
filters:
@@ -394,42 +296,19 @@ workflows:
- integration-tests:
requires:
- setup-dependencies
- test-sim-nondeterminism:
requires:
- setup-dependencies
- test-sim-import-export:
requires:
- setup-dependencies
- test-sim-after-import:
requires:
- setup-dependencies
- test-sim-multi-seed-short:
requires:
- setup-dependencies
- test-sim-multi-seed-long:
requires:
- setup-dependencies
# These filters ensure that the long sim only runs during release
filters:
branches:
ignore: /.*/
tags:
only:
- /^v.*/
- test-cover:
requires:
- setup-dependencies
- localnet
- upload-coverage:
requires:
- test-cover
- reproducible-builds:
filters:
branches:
only:
- master
requires:
- setup-dependencies
# - reproducible-builds:
# filters:
# branches:
# only:
# - master
# requires:
# - setup-dependencies
# - contract_tests:
# requires:
# - setup-dependencies