summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2021-03-02 11:48:25 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2021-03-03 19:57:06 +0100
commit65e9d3a68e1e8a838f0f7bf56f480d916f385af8 (patch)
tree3981f0cc2b0ec78a9e60acfa9823a44f10329ad7
parentd713195fde5d6546d12e7afb6de2151b9c91f07f (diff)
add gitlab-ci
This does a repo init; repo sync. It will fail if any of the layers cannot be cloned at the given revision. Change-Id: I0a448700d964a5839d834996880b281f3ad10db7 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--.gitlab-ci.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..eb9ce11
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,35 @@
+variables:
+# uncomment for the pipeline debug purpose
+# CI_DEBUG_TRACE: "true"
+ CI_IMAGE: gitlab.int.toradex.com:4567/oleksandr.suvorov/ci-toolchain-container:linux-kernel-builder
+ DOCKER_HOST: tcp://docker:2375
+ DOCKER_DRIVER: overlay2
+ DOCKER_TLS_CERTDIR: ""
+
+stages:
+ - build
+
+repo-sync:
+ stage: build
+ image: $CI_IMAGE
+ variables:
+ GIT_STRATEGY: clone
+ script:
+ - ORIGIN=$(git remote get-url origin)
+ - mkdir -p ../bin
+ - wget -O ../bin/repo http://commondatastorage.googleapis.com/git-repo-downloads/repo
+ - chmod a+x ../bin/repo
+ - mkdir -p ../workspace
+ - cd ../workspace
+ - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tdxref/default.xml
+ - ../bin/repo sync
+ - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tdxref/integration.xml
+ - ../bin/repo sync
+ - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tdxref/next.xml
+ - ../bin/repo sync
+ - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m torizoncore/default.xml
+ - ../bin/repo sync
+ - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m torizoncore/integration.xml
+ - ../bin/repo sync
+ - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m torizoncore/next.xml
+ - ../bin/repo sync