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.

27 lines
604 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. # TODO: drop the `_test` once we're ballin' enough
  8. make metalinter_test
  9. # run the go unit tests with coverage
  10. bash test/test_cover.sh
  11. # run the app tests using bash
  12. bash test/app/test.sh
  13. # run the persistence tests using bash
  14. bash test/persist/test.sh
  15. if [[ "$BRANCH" == "master" || $(echo "$BRANCH" | grep "release-") != "" ]]; then
  16. echo ""
  17. echo "* branch $BRANCH; testing libs"
  18. # checkout every github.com/tendermint dir and run its tests
  19. bash test/test_libs.sh
  20. fi