aboutsummaryrefslogtreecommitdiffstats
path: root/util/travis_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/travis_build.sh')
-rwxr-xr-xutil/travis_build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/travis_build.sh b/util/travis_build.sh
index 2c6c62931..02a749e85 100755
--- a/util/travis_build.sh
+++ b/util/travis_build.sh
@@ -1,5 +1,12 @@
#!/bin/bash
+# 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
+
# test force push
#TRAVIS_COMMIT_RANGE="c287f1bfc5c8...81f62atc4c1d"