aboutsummaryrefslogtreecommitdiffstats
path: root/util/travis_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/travis_test.sh')
-rw-r--r--util/travis_test.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/travis_test.sh b/util/travis_test.sh
index 6c48f898c..b6ec06f05 100644
--- a/util/travis_test.sh
+++ b/util/travis_test.sh
@@ -19,4 +19,11 @@ if [ "$BRANCH" != "master" ] && [ "$NUM_IMPACTING_CHANGES" == "0" ]; then
exit 0
fi
+# if docker is installed - call make within the qmk docker image
+if command -v docker >/dev/null; then
+ function make() {
+ docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware qmkfm/qmk_firmware make "$@"
+ }
+fi
+
make test:all