mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 18:51:39 +00:00
test: dont run cloud test on push to master
This commit is contained in:
14
test/test.sh
14
test/test.sh
@ -1,19 +1,14 @@
|
||||
#! /bin/bash
|
||||
|
||||
# integrations test
|
||||
# this is the script run by eg CircleCI.
|
||||
# It creates a docker container,
|
||||
# installs the dependencies,
|
||||
# and runs the tests.
|
||||
# If we pushed to STAGING or MASTER,
|
||||
# it will also run the tests for all dependencies
|
||||
# Top Level Testing Script
|
||||
# See the github.com/tendermint/tendermint/test/README.md
|
||||
|
||||
echo ""
|
||||
echo "* building docker file"
|
||||
docker build -t tester -f ./test/Dockerfile .
|
||||
|
||||
echo ""
|
||||
echo "* running go tests and broadcast tests"
|
||||
echo "* running go tests and app tests"
|
||||
docker run -t tester bash test/run_test.sh
|
||||
|
||||
# test basic network connectivity
|
||||
@ -22,8 +17,9 @@ echo ""
|
||||
echo "* running basic peer tests"
|
||||
bash test/p2p/test.sh tester
|
||||
|
||||
# only run the cloud benchmark for releases
|
||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
||||
if [[ "$BRANCH" == "master" || $(echo "$BRANCH" | grep "release-") != "" ]]; then
|
||||
if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then
|
||||
echo ""
|
||||
echo "* branch $BRANCH; running mintnet/netmon throughput benchmark"
|
||||
bash test/net/test.sh
|
||||
|
Reference in New Issue
Block a user