2016-07-23 16:38:44 -07:00
|
|
|
#! /bin/bash
|
2016-07-24 11:08:47 -07:00
|
|
|
set -e
|
2016-07-23 16:38:44 -07:00
|
|
|
|
2017-02-20 15:51:00 -08:00
|
|
|
pwd
|
2016-07-23 16:38:44 -07:00
|
|
|
|
2017-02-20 15:51:00 -08:00
|
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
2016-07-23 16:38:44 -07:00
|
|
|
echo "Current branch: $BRANCH"
|
|
|
|
|
2017-03-05 17:39:52 -08:00
|
|
|
# run the go unit tests with coverage
|
2017-03-03 16:58:17 -08:00
|
|
|
bash test/test_cover.sh
|
|
|
|
|
2017-03-05 17:39:52 -08:00
|
|
|
# run the app tests using bash
|
2017-03-03 16:58:17 -08:00
|
|
|
bash test/app/test.sh
|
2016-07-24 11:08:47 -07:00
|
|
|
|
2017-03-05 17:39:52 -08:00
|
|
|
# run the persistence tests using bash
|
2016-09-10 20:35:18 -07:00
|
|
|
bash test/persist/test.sh
|
2016-08-24 22:39:03 -07:00
|
|
|
|
2017-03-03 16:58:17 -08:00
|
|
|
if [[ "$BRANCH" == "master" || $(echo "$BRANCH" | grep "release-") != "" ]]; then
|
|
|
|
echo ""
|
|
|
|
echo "* branch $BRANCH; testing libs"
|
|
|
|
# checkout every github.com/tendermint dir and run its tests
|
|
|
|
bash test/test_libs.sh
|
|
|
|
fi
|