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
|
|
|
|
|
|
|
echo `pwd`
|
|
|
|
|
|
|
|
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
|
|
|
echo "Current branch: $BRANCH"
|
|
|
|
|
2016-09-25 02:02:54 -07:00
|
|
|
bash test/test_cover.sh
|
2016-07-23 16:38:44 -07:00
|
|
|
|
2016-08-05 15:21:39 -07:00
|
|
|
# run the app tests
|
|
|
|
bash test/app/test.sh
|
2016-07-24 11:08:47 -07:00
|
|
|
|
2016-08-24 22:39:03 -07:00
|
|
|
# run the persistence test
|
2016-09-10 20:35:18 -07:00
|
|
|
bash test/persist/test.sh
|
2016-08-24 22:39:03 -07:00
|
|
|
|
2016-08-05 16:15:14 -07:00
|
|
|
if [[ "$BRANCH" == "master" || $(echo "$BRANCH" | grep "release-") != "" ]]; then
|
2016-07-24 11:08:47 -07:00
|
|
|
echo ""
|
|
|
|
echo "* branch $BRANCH; testing libs"
|
|
|
|
# checkout every github.com/tendermint dir and run its tests
|
2016-07-23 16:38:44 -07:00
|
|
|
bash test/test_libs.sh
|
|
|
|
fi
|