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