[Mesa-dev] [PATCH v2 3/5] gitlab-ci: Build from the released tarballs
Juan A. Suarez Romero
jasuarez at igalia.com
Wed Aug 29 10:12:36 UTC 2018
The `distcheck` stage creates a tarball ready for the distribution, and
compiles it with the autotools to ensure everything works fine.
But it does not try with the other tools: scons and meson.
Hence, let's add a new stage that takes the generated tarball and builds
it using meson and scons.
Signed-off-by: Juan A. Suarez Romero <jasuarez at igalia.com>
Acked-by: Daniel Stone <daniels at collabora.com>
---
.gitlab-ci.yml | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 31f69ceb29e..ffed0ec8c65 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,7 @@ stages:
- base
- llvm
- mesa
+ - tarball
variables:
DOCKER_IMAGE: $CI_REGISTRY_IMAGE
@@ -48,6 +49,14 @@ after_script:
script:
- ../rocker build -f gitlab-ci/Rockerfile.mesa --var BUILD=$BUILD --var LLVM=$LLVM --var TAG=$CI_COMMIT_REF_SLUG .
+.build_tarball: &build_tarball
+ stage: tarball
+ dependencies:
+ - distcheck
+ script:
+ - tar -xf release-output/mesa-*.tar.xz
+ - ../rocker build -f gitlab-ci/Rockerfile.mesa --var BUILD=$BUILD --var LLVM=$LLVM mesa-*
+
base:
stage: base
script:
@@ -178,3 +187,18 @@ windows:
variables:
BUILD: "windows"
<<: *build_mesa
+
+tarball:meson:
+ variables:
+ BUILD: "meson"
+ <<: *build_tarball
+
+tarball:scons:
+ variables:
+ BUILD: "scons"
+ <<: *build_tarball
+
+tarball:windows:
+ variables:
+ BUILD: "windows"
+ <<: *build_tarball
--
2.17.1
More information about the mesa-dev
mailing list