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.

21 lines
547 B

  1. #!/bin/bash
  2. source util/travis_utils.sh
  3. NUM_CORE_CHANGES=$(echo "$QMK_CHANGES" | grep -Ecv -e '^(docs/)' -e '^(keyboards/)' -e '^(layouts/)' -e '^(util/)' -e '^(lib/python/)' -e '^(bin/qmk)' -e '^(requirements.txt)' -e '(.travis.yml)')
  4. if [[ "$TRAVIS_COMMIT_MESSAGE" == *"[skip test]"* ]]; then
  5. echo "Skipping due to commit message"
  6. exit 0
  7. fi
  8. exit_code=0
  9. if [ "$LOCAL_BRANCH" == "master" ] || [ "$NUM_CORE_CHANGES" != "0" ]; then
  10. echo "Running tests."
  11. make test:all
  12. : $((exit_code = $exit_code + $?))
  13. fi
  14. exit $exit_code