[libdazzle/alatiera/bst-ci] Add initial CI
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle/alatiera/bst-ci] Add initial CI
- Date: Sat, 6 Oct 2018 02:02:57 +0000 (UTC)
commit cf3f1ca7b0bd0c27457270f52f892c9a73ffa758
Author: Jordan Petridis <jpetridis gnome org>
Date: Fri Sep 28 08:34:50 2018 +0300
Add initial CI
.gitlab-ci.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..fbdcb73
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,47 @@
+variables:
+ ELEMENT: "core-deps/libdazzle.bst"
+
+stages:
+ - "build"
+
+bst:
+ image: "buildstream/buildstream-fedora:master-118-dae842fd"
+ stage: "build"
+ 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 --config build.conf --log-file ../logs/build.log --colors"
+
+ before_script:
+ # Clone the GNOME moduleset
+ - git clone --depth=1 https://gitlab.gnome.org/GNOME/gnome-build-meta.git
+
+ # Ensure the log directory exists
+ - mkdir -p logs
+ script:
+ - cd gnome-build-meta/
+ - ${BST} track ${ELEMENT}
+ - ${BST} fetch --track ${ELEMENT}
+ - ${BST} workspace open --no-checkout --track -f ${ELEMENT} ../
+ - ${BST} build --track-all ${ELEMENT}
+ after_script:
+ - cd gnome-build-meta/
+ - bst workspace close ${ELEMENT}
+
+ # Store all the downloaded git and ostree repos in the cache.
+ # This saves us fetching them on every build
+ cache:
+ key: "bst"
+ paths:
+ - "${XDG_CACHE_HOME}/buildstream/sources/"
+
+ # Store artifacts so we can inspect build failures
+ artifacts:
+ when: "always"
+ paths:
+ - "logs"
+ - "project.refs"
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]