gitlab-ci: set a common job parent for build stage
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 14 Oct 2019 22:52:58 +0000 (23:52 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 15 Oct 2019 16:42:39 +0000 (17:42 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
.gitlab-ci.yml
.gitlab-ci/lava-gitlab-ci.yml

index 7c9b82c3898db4f8bab7d64c446f76702a720786..5d1fb4292fc74458f5d082fa3bbc2753c412c840 100644 (file)
@@ -75,7 +75,6 @@ debian-10:
     DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
 
 .use-debian-10:
-  extends: .ci-run-policy
   image: $DEBIAN_IMAGE
   needs:
     - debian-10
@@ -106,7 +105,7 @@ test-container:arm64:
 # BUILD
 
 .build:
-  extends: .use-debian-10
+  extends: .ci-run-policy
   stage: build
   cache:
     key: ${CI_JOB_NAME}
@@ -140,12 +139,16 @@ test-container:arm64:
     - ccache --show-stats
 
 .meson-build:
-  extends: .build
+  extends:
+    - .build
+    - .use-debian-10
   script:
     - .gitlab-ci/meson-build.sh
 
 .scons-build:
-  extends: .build
+  extends:
+    - .build
+    - .use-debian-10
   variables:
     SCONSFLAGS: "-j4"
   script:
index bcf4591cd460b40f3768710ea6fe9679da6d2a8a..b994118fd6d5abfed938e429fa818b200aa03d9a 100644 (file)
@@ -58,16 +58,9 @@ lava-container:arm64:
     KERNEL_IMAGE_NAME: "Image"
 
 .lava-build:
-  stage: build
   image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:$DEBIAN_ARCH-$LAVA_IMAGE_TAG
   extends:
-    - .ci-run-policy
-  cache:
-    key: ${CI_JOB_NAME}
-    paths:
-      - ccache
-  variables:
-    CCACHE_COMPILERCHECK: "content"
+    - .build
   # Use ccache transparently, and print stats before/after
   before_script:
     - mkdir -p results mesa-build