[RPC] Static swagger (#3880)
* manually swagging
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* three definitions with polymorphism
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* added blockchain and block
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* low quality generation, commit, block_response and validators
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* genesis and consensus states endpoints
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* fix indentation
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* consensus parameters
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* fix indentation
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* add height to consensus parameters endpoint
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* unconfirmed_txs and num_unconfirmed_txs
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* add missing query parameter
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* add ABCI queries
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* added index document for swagger documentation
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* add missing routes
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* contract tests added on CCI
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* contract tests job should be in the test suite
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* simplify requirements to test
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* typo
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* build is a prerequisite to start localnet
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* reduce nodejs size, move goodman to get_tools, add docs, fix comments
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* Update scripts/get_tools.sh
That's cleaner, thanks!
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
* xz not supported by cci image, let's keep it simple
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* REMOVE-indirect debug of CCI paths
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* dirty experiment, volume is empty but binary has been produced
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* dirty experiment, volume is empty but binary has been produced
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* dirty experiment going on
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* locally works, CCI have difficulties with second layaer containers volumes
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* restore experiment, use machine instead of docker for contract tests
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* simplify a bit
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* rollback on machine golang
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* Document the changes
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* Changelog
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
* comments
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
5 years ago |
|
- version: 2.1
-
- executors:
- golang:
- docker:
- - image: tendermintdev/docker-tendermint-build
- working_directory: /go/src/github.com/tendermint/tendermint
- environment:
- GOBIN: /tmp/bin
- release:
- machine: true
- docs:
- docker:
- - image: tendermintdev/docker-website-deployment
- environment:
- AWS_REGION: us-east-1
-
- commands:
- run_test:
- parameters:
- script_path:
- type: string
- steps:
- - attach_workspace:
- at: /tmp/bin
- - restore_cache:
- name: "Restore source code cache"
- keys:
- - go-src-v1-{{ .Revision }}
- - checkout
- - restore_cache:
- name: "Restore go modules cache"
- keys:
- - go-mod-v1-{{ checksum "go.sum" }}
- - run:
- name: "Running test"
- command: |
- bash << parameters.script_path >>
- jobs:
- setup_dependencies:
- executor: golang
- steps:
- - checkout
- - restore_cache:
- name: "Restore go modules cache"
- keys:
- - go-mod-v1-{{ checksum "go.sum" }}
- - run:
- command: |
- mkdir -p /tmp/bin
- - run:
- name: Cache go modules
- command: make go-mod-cache
- - run:
- name: tools
- command: make tools
- - run:
- name: "Build binaries"
- command: make install install_abci
- - save_cache:
- name: "Save go modules cache"
- key: go-mod-v1-{{ checksum "go.sum" }}
- paths:
- - "/go/pkg/mod"
- - save_cache:
- name: "Save source code cache"
- key: go-src-v1-{{ .Revision }}
- paths:
- - ".git"
- - persist_to_workspace:
- root: "/tmp/bin"
- paths:
- - "."
-
- deploy_docs:
- executor: docs
- steps:
- - checkout
- - run:
- name: "Pull versions"
- command: git fetch origin v0.32 v0.33
- - run:
- name: "Build docs"
- command: make build-docs
- - run:
- name: "Sync to S3"
- command: make sync-docs
-
- prepare_build:
- executor: golang
- steps:
- - restore_cache:
- name: "Restore source code cache"
- keys:
- - go-src-v1-{{ .Revision }}
- - checkout
- - run:
- name: Get next release number
- command: |
- export LAST_TAG="`git describe --tags --abbrev=0 --match "${CIRCLE_BRANCH}.*"`"
- echo "Last tag: ${LAST_TAG}"
- if [ -z "${LAST_TAG}" ]; then
- export LAST_TAG="${CIRCLE_BRANCH}"
- echo "Last tag not found. Possibly fresh branch or feature branch. Setting ${LAST_TAG} as tag."
- fi
- export NEXT_TAG="`python -u scripts/release_management/bump-semver.py --version "${LAST_TAG}"`"
- echo "Next tag: ${NEXT_TAG}"
- echo "export CIRCLE_TAG=\"${NEXT_TAG}\"" > release-version.source
- - run:
- name: Build dependencies
- command: make tools
- - persist_to_workspace:
- root: .
- paths:
- - "release-version.source"
- - save_cache:
- key: v2-release-deps-{{ checksum "go.sum" }}
- paths:
- - "/go/pkg/mod"
-
- # # Test RPC implementation against the swagger documented specs
- # contract_tests:
- # working_directory: /home/circleci/.go_workspace/src/github.com/tendermint/tendermint
- # machine:
- # image: circleci/classic:latest
- # environment:
- # GOBIN: /home/circleci/.go_workspace/bin
- # GOPATH: /home/circleci/.go_workspace/
- # GOOS: linux
- # GOARCH: amd64
- # parallelism: 1
- # steps:
- # - checkout
- # - run:
- # name: Test RPC endpoints against swagger documentation
- # command: |
- # set -x
- # export PATH=~/.local/bin:$PATH
- # # install node and dredd
- # ./scripts/get_nodejs.sh
- # # build the binaries with a proper version of Go
- # docker run --rm -v "$PWD":/go/src/github.com/tendermint/tendermint -w /go/src/github.com/tendermint/tendermint golang make build-linux build-contract-tests-hooks
- # # This docker image works with go 1.7, we can install here the hook handler that contract-tests is going to use
- # go get github.com/snikch/goodman/cmd/goodman
- # make contract-tests
-
- workflows:
- version: 2
- docs:
- jobs:
- - deploy_docs:
- context: tendermint-docs
- filters:
- branches:
- only:
- - master
- tags:
- only:
- - /^v.*/
- - deploy_docs:
- context: tendermint-docs-staging
- filters:
- branches:
- only:
- - docs-staging
- # - contract_tests:
- # requires:
- # - setup_dependencies
|