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



commit c3524e3d6cc52dbdbbb21c6d130cb09f5bdbd61c
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..3e7158b
--- /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: 'a10ef1a4db25b408841c4b20cec64315cb085b59'
+
+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]