mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 01:46:09 +00:00
75e7018f72
Create GitHub Actions cli test workflow and remove travis runs of 'qmk pytest'
21 lines
547 B
Bash
21 lines
547 B
Bash
#!/bin/bash
|
|
|
|
source util/travis_utils.sh
|
|
|
|
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)')
|
|
|
|
if [[ "$TRAVIS_COMMIT_MESSAGE" == *"[skip test]"* ]]; then
|
|
echo "Skipping due to commit message"
|
|
exit 0
|
|
fi
|
|
|
|
exit_code=0
|
|
|
|
if [ "$LOCAL_BRANCH" == "master" ] || [ "$NUM_CORE_CHANGES" != "0" ]; then
|
|
echo "Running tests."
|
|
make test:all
|
|
: $((exit_code = $exit_code + $?))
|
|
|
|
fi
|
|
|
|
exit $exit_code
|