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.

26 lines
536 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 linter
  7. make metalinter
  8. # run the go unit tests with coverage
  9. bash test/test_cover.sh
  10. # run the app tests using bash
  11. bash test/app/test.sh
  12. # run the persistence tests using bash
  13. bash test/persist/test.sh
  14. if [[ "$BRANCH" == "master" || $(echo "$BRANCH" | grep "release-") != "" ]]; then
  15. echo ""
  16. echo "* branch $BRANCH; testing libs"
  17. # checkout every github.com/tendermint dir and run its tests
  18. bash test/test_libs.sh
  19. fi