Add python tests to the travis check
This commit is contained in:
parent
deb6fa6a87
commit
1013ae2d34
@ -22,7 +22,7 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then
|
|||||||
eval $MAKE_ALL
|
eval $MAKE_ALL
|
||||||
: $((exit_code = $exit_code + $?))
|
: $((exit_code = $exit_code + $?))
|
||||||
else
|
else
|
||||||
NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | grep -Ev '^(docs/)' | wc -l)
|
NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | grep -Ev '^(docs/)' | wc -l)
|
||||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
# is this branch master or a "non docs, non keyboards" change
|
# is this branch master or a "non docs, non keyboards" change
|
||||||
if [ $NEFM -gt 0 -o "$BRANCH" = "master" ]; then
|
if [ $NEFM -gt 0 -o "$BRANCH" = "master" ]; then
|
||||||
@ -51,6 +51,14 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
# Check and run python tests if necessary
|
||||||
|
PFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -E '^(lib/python/)' | wc -l)
|
||||||
|
if [ $PFM -gt 0 -o "$BRANCH" = "master" ]; then
|
||||||
|
echo
|
||||||
|
echo "Running python tests."
|
||||||
|
bin/qmk nose2
|
||||||
|
: $((exit_code = $exit_code + $?))
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
exit $exit_code
|
exit $exit_code
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user