[gnome-build-meta/alatiera/push-master: 2/4] .gitlab-ci.yml: run bst track in a separate job



commit 3f4adc1ecd2ed46fb10b06f8f46bbd596b5029d1
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Thu Sep 27 11:25:12 2018 +0100

    .gitlab-ci.yml: run bst track in a separate job
    
    This ensures the builds for different architectures use the same versions
    and avoid doing the work more than once.

 .gitlab-ci.yml | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b0137a0..e051caf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ variables:
   FLATPAK_BRANCH: master
 
 stages:
+  - track
   - build
 
 
@@ -86,9 +87,8 @@ before_script:
 
 .build-template: &build
   stage: build
-  dependencies: []
   script:
-    - ${BST} -o arch "${ARCH}" build --track-all core.bst flatpak-runtimes.bst
+    - ${BST} -o arch "${ARCH}" build core.bst flatpak-runtimes.bst
 
     # checkout the runtimes
     - |
@@ -122,6 +122,26 @@ before_script:
       - logs
       - project.refs
 
+
+track:
+  image: buildstream/buildstream-fedora:master-113-499df6a5
+  stage: track
+  script:
+    - ${BST} track --deps all core.bst flatpak-runtimes.bst
+
+  # Store all the downloaded sources in the distributed cache, so that later
+  # jobs don't need to redownload them.
+  cache:
+    key: bst
+    paths:
+      - "${XDG_CACHE_HOME}/buildstream/sources/"
+  artifacts:
+    when: always
+    paths:
+      - logs
+      - project.refs
+
+
 build-gnome-core-x86_64:
   image: buildstream/buildstream-fedora:master-113-499df6a5
   <<: *build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]