]> git.localhorst.tv Git - blank.git/blobdiff - scripts/docker/exec.bash
add option to skip tests requiring a display
[blank.git] / scripts / docker / exec.bash
index 824405970abb10dc462a20db015de1cd430ea61f..ea6f97daa93e1825dcaeeca1616ca9cafb38953e 100755 (executable)
@@ -13,7 +13,7 @@ image_path="scripts/docker/${IMAGE//:/-}"
 
 xvfb_cmd="xvfb-run -a --server-args='-screen 0 1024x768x24 +extension RANDR +extension GLX'"
 
-build_cmd="git clone /repo /workdir && cd /workdir && make -j\$(nproc) $TARGETS"
+build_cmd="cp -R /repo /workdir && cd /workdir && make -j\$(nproc) $TARGETS"
 
 if [[ "$KEEP" != "" ]]; then
        build_cmd="${build_cmd} && cp -Rv $KEEP /repo"
@@ -27,4 +27,4 @@ if [[ "$TARGETS" == *codecov* ]]; then
 fi
 
 docker build -t "${image_name}" --pull=true "${image_path}"
-docker run -v "$PWD":/repo ${local_conf} "${image_name}" sh -c "$xvfb_cmd sh -c 'env ; glewinfo | head ; ${build_cmd}'"
+docker run -v "$PWD":/repo ${local_conf} "${image_name}" sh -c "$xvfb_cmd sh -c '${build_cmd}'"