You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
502 B

8 years ago
8 years ago
8 years ago
8 years ago
  1. #! /bin/bash
  2. set -e
  3. pwd
  4. BRANCH=$(git rev-parse --abbrev-ref HEAD)
  5. echo "Current branch: $BRANCH"
  6. # run the go unit tests with coverage
  7. bash test/test_cover.sh
  8. # run the app tests using bash
  9. bash test/app/test.sh
  10. # run the persistence tests using bash
  11. bash test/persist/test.sh
  12. if [[ "$BRANCH" == "master" || $(echo "$BRANCH" | grep "release-") != "" ]]; then
  13. echo ""
  14. echo "* branch $BRANCH; testing libs"
  15. # checkout every github.com/tendermint dir and run its tests
  16. bash test/test_libs.sh
  17. fi