Mesa (master): gitlab-ci: Move scons build/test commands to a separate shell script

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Sep 18 10:56:22 UTC 2019


Module: Mesa
Branch: master
Commit: 0374aacac0a9f9f4a0255ffcf8bcd1439103bc24
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0374aacac0a9f9f4a0255ffcf8bcd1439103bc24

Author: Michel Dänzer <mdaenzer at redhat.com>
Date:   Thu Sep 12 11:34:43 2019 +0200

gitlab-ci: Move scons build/test commands to a separate shell script

Preparatory, no functional change intended.

Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

---

 .gitlab-ci.yml            |  6 +-----
 .gitlab-ci/scons-build.sh | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bada20dc89c..170b2cb1a0d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -129,11 +129,7 @@ test-container:arm64:
   variables:
     SCONSFLAGS: "-j4"
   script:
-    - if test -n "$LLVM_VERSION"; then
-        export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
-      fi
-    - scons $SCONS_TARGET
-    - eval $SCONS_CHECK_COMMAND
+    - .gitlab-ci/scons-build.sh
 
 meson-main:
   extends:
diff --git a/.gitlab-ci/scons-build.sh b/.gitlab-ci/scons-build.sh
new file mode 100755
index 00000000000..30e93c2bb38
--- /dev/null
+++ b/.gitlab-ci/scons-build.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+set -o xtrace
+
+if test -n "$LLVM_VERSION"; then
+    export LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
+fi
+
+rm -rf build
+scons $SCONS_TARGET
+eval $SCONS_CHECK_COMMAND




More information about the mesa-commit mailing list