Use qmk docker image for travis CI builds

This commit is contained in:
zvecr
2019-01-17 17:08:23 +00:00
committed by Drashna Jaelre
parent 6693d16362
commit ba6b3fc1b5
4 changed files with 22 additions and 21 deletions

View File

@ -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