mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
improve circleci config
- update docker machine version to 0.9.0 - save coverage.txt as artifact - save docker logs as artifact - test if coverage.txt exists - 2>&1 redirect stderr to stdout in tests
This commit is contained in:
+1
-1
@@ -29,6 +29,6 @@ if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then
|
||||
echo ""
|
||||
echo "TODO: run network tests"
|
||||
#echo "* branch $BRANCH; running mintnet/netmon throughput benchmark"
|
||||
# TODO: replace mintnet
|
||||
# TODO: replace mintnet
|
||||
#bash test/net/test.sh
|
||||
fi
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ PKGS=$(go list github.com/tendermint/tendermint/... | grep -v /vendor/)
|
||||
set -e
|
||||
echo "mode: atomic" > coverage.txt
|
||||
for pkg in ${PKGS[@]}; do
|
||||
go test -timeout 30m -race -coverprofile=profile.out -covermode=atomic $pkg
|
||||
go test -v -timeout 30m -race -coverprofile=profile.out -covermode=atomic $pkg
|
||||
if [ -f profile.out ]; then
|
||||
tail -n +2 profile.out >> coverage.txt;
|
||||
rm profile.out
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ for lib in "${LIBS_GO_TEST[@]}"; do
|
||||
bash scripts/glide/checkout.sh $GLIDE $lib
|
||||
|
||||
echo "Testing $lib ..."
|
||||
go test --race github.com/tendermint/$lib/...
|
||||
go test -v --race github.com/tendermint/$lib/...
|
||||
if [[ "$?" != 0 ]]; then
|
||||
echo "FAIL"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user