[gnome-build-meta/jjardon/ci] .gitlab-ci.yml: Add minimal CI



commit c98194cec1bb25ebd12581d6d0dc195486c9440f
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Feb 19 16:03:28 2018 +0000

    .gitlab-ci.yml: Add minimal CI

 .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..48bdf59
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,38 @@
+image: buildstream/buildstream-fedora:master-47-e8de57f
+
+variables:
+  # Store all the bst stuff under the "${CI_PROJECT_DIR}" directory.
+  # Note that GitLab CI will only cache stuff inside the "${CI_PROJECT_DIR}" folder.
+  XDG_CACHE_HOME: "${CI_PROJECT_DIR}/cache"
+  GET_SOURCES_ATTEMPTS: 3
+  BST: 'bst --colors'
+  BST_SHA: '2643b095c59db6e8cbc2b8620c2ad820c7a5636d' #  1.1.0
+
+stages:
+  - build
+
+before_script:
+  - git clone https://gitlab.com/BuildStream/buildstream.git
+  # Use specific version of BuildStream
+  - git -C buildstream/ checkout $BST_SHA
+  - pip3 install buildstream
+
+# Store all the downloaded git and ostree repos in the distributed cache.
+# This saves us fetching them from git.baserock.org and further afield
+# on every build.
+.bst_cache: &bst_cache
+  cache:
+    key: bst
+    paths:
+      - "${XDG_CACHE_HOME}/buildstream/sources/"
+
+
+
+bst-build-gnome-core:
+  stage: build
+  dependencies: []
+  script:
+    - ${BST} track base/crates.bst
+    - ${BST} track core-deps/m4-common.bst
+    - ${BST} build core.bst
+  <<: *bst_cache


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