gitlab-ci: add missing popd to the build-deqp-vk.sh script
[mesa.git] / .gitlab-ci / build-deqp-vk.sh
index 0ecca19b951e87cf2113ef0c215572197bce5774..16db188384391df6c1e4182e71178e272eb22ca2 100644 (file)
@@ -1,8 +1,13 @@
-git clone --depth 1 \
+#!/bin/bash
+
+set -ex
+
+git clone \
+    --depth 1 \
     https://github.com/KhronosGroup/VK-GL-CTS.git \
     -b vulkan-cts-1.1.6.0 \
     /VK-GL-CTS
-cd /VK-GL-CTS
+pushd /VK-GL-CTS
 
 # --insecure is due to SSL cert failures hitting sourceforge for zlib and
 # libpng (sigh).  The archives get their checksums checked anyway, and git
@@ -10,7 +15,10 @@ cd /VK-GL-CTS
 python3 external/fetch_sources.py --insecure
 
 mkdir -p /deqp
-cd /deqp
+
+popd
+
+pushd /deqp
 cmake -G Ninja \
       -DDEQP_TARGET=x11_glx \
       -DCMAKE_BUILD_TYPE=Release \
@@ -31,3 +39,4 @@ find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' | xargs r
 strip external/vulkancts/modules/vulkan/deqp-vk
 du -sh *
 rm -rf /VK-GL-CTS
+popd