mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-29 04:31:44 +00:00
13
README.md
13
README.md
@ -1,8 +1,17 @@
|
|||||||
# Tendermint
|
# Tendermint
|
||||||
Simple, Secure, Scalable Blockchain Platform
|
Simple, Secure, Scalable Blockchain Platform
|
||||||
|
|
||||||
[](https://circleci.com/gh/tendermint/tendermint)
|
[](https://github.com/tendermint/tendermint/releases/latest)
|
||||||
[](https://codecov.io/gh/tendermint/tendermint)
|
[](https://godoc.org/github.com/tendermint/tendermint)
|
||||||
|
[](http://forum.tendermint.com:3000/)
|
||||||
|
[](https://github.com/tendermint/tendermint/blob/master/LICENSE)
|
||||||
|
|
||||||
|
Branch | Tests | Coverage | Report Card
|
||||||
|
----------|-------|----------|-------------
|
||||||
|
develop | [](https://circleci.com/gh/tendermint/tendermint/tree/develop) | [](https://codecov.io/gh/tendermint/tendermint) | [](https://goreportcard.com/report/github.com/tendermint/tendermint/tree/develop)
|
||||||
|
master | [](https://circleci.com/gh/tendermint/tendermint/tree/master) | [](https://codecov.io/gh/tendermint/tendermint) | [](https://goreportcard.com/report/github.com/tendermint/tendermint/tree/master)
|
||||||
|
|
||||||
_NOTE: This is yet pre-alpha non-production-quality software._
|
_NOTE: This is yet pre-alpha non-production-quality software._
|
||||||
|
|
||||||
|
@ -31,4 +31,6 @@ test:
|
|||||||
override:
|
override:
|
||||||
- "cd $REPO && make test_integrations"
|
- "cd $REPO && make test_integrations"
|
||||||
post:
|
post:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- "cd $REPO && bash <(curl -s https://codecov.io/bash)"
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@ echo `pwd`
|
|||||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
||||||
echo "Current branch: $BRANCH"
|
echo "Current branch: $BRANCH"
|
||||||
|
|
||||||
# go test --race github.com/tendermint/tendermint/...
|
bash test/test_cover.sh
|
||||||
make test_race
|
|
||||||
|
|
||||||
# run the app tests
|
# run the app tests
|
||||||
bash test/app/test.sh
|
bash test/app/test.sh
|
||||||
|
@ -10,7 +10,10 @@ bash ./test/docker/build.sh
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "* running go tests and app tests in docker container"
|
echo "* running go tests and app tests in docker container"
|
||||||
docker run -t tester bash test/run_test.sh
|
docker run --name run_test -t tester bash test/run_test.sh
|
||||||
|
|
||||||
|
# copy the coverage results out of docker container
|
||||||
|
docker cp run_test:/go/src/github.com/tendermint/tendermint/coverage.txt .
|
||||||
|
|
||||||
# test basic network connectivity
|
# test basic network connectivity
|
||||||
# by starting a local testnet and checking peers connect and make blocks
|
# by starting a local testnet and checking peers connect and make blocks
|
||||||
|
13
test/test_cover.sh
Normal file
13
test/test_cover.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
PKGS=$(go list github.com/tendermint/tendermint/... | grep -v /vendor/)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
echo "mode: atomic" > coverage.txt
|
||||||
|
for pkg in ${PKGS[@]}; do
|
||||||
|
go test -race -coverprofile=profile.out -covermode=atomic $pkg
|
||||||
|
if [ -f profile.out ]; then
|
||||||
|
tail -n +2 profile.out >> coverage.txt;
|
||||||
|
rm profile.out
|
||||||
|
fi
|
||||||
|
done
|
Reference in New Issue
Block a user