From 65e9d3a68e1e8a838f0f7bf56f480d916f385af8 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 2 Mar 2021 11:48:25 +0100 Subject: 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 --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitlab-ci.yml 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 -- cgit v1.2.3