travis_test.sh 358 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. source util/travis_utils.sh
  3. if [[ "$TRAVIS_COMMIT_MESSAGE" == *"[skip test]"* ]]; then
  4. echo "Skipping due to commit message"
  5. exit 0
  6. fi
  7. exit_code=0
  8. if [ "$LOCAL_BRANCH" == "master" ] || [ "$NUM_CORE_CHANGES" != "0" ]; then
  9. echo "Running tests."
  10. make test:all
  11. : $((exit_code = $exit_code + $?))
  12. fi
  13. exit $exit_code