gitlab-ci: move building piglit into a separate script
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 15 Nov 2019 11:02:08 +0000 (12:02 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Nov 2019 08:33:39 +0000 (09:33 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
.gitlab-ci/build-piglit.sh [new file with mode: 0644]
.gitlab-ci/container/x86_test.sh

diff --git a/.gitlab-ci/build-piglit.sh b/.gitlab-ci/build-piglit.sh
new file mode 100644 (file)
index 0000000..9d61b12
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -ex
+
+git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
+pushd /piglit
+git checkout d5aa2cf85503c5339cd8dff04b709acb8085ad93
+patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
+cmake -G Ninja -DCMAKE_BUILD_TYPE=Release
+ninja -j4
+find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
+rm -rf target_api
+popd
index 05835114aa45ed53492ab47f2808a43c4f7a907f..ad80ef004c2d83294a15f77b20306370bb94c6c0 100644 (file)
@@ -55,16 +55,7 @@ apt-get install -y --no-remove \
 
 ############### Build piglit
 
-git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
-pushd /piglit
-git checkout d5aa2cf85503c5339cd8dff04b709acb8085ad93
-patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
-cmake -G Ninja -DCMAKE_BUILD_TYPE=Release
-ninja -j4
-find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
-rm -rf target_api
-popd
-
+. .gitlab-ci/build-piglit.sh
 
 ############### Build dEQP runner