From 0a7b7dec69c84b2c7b21cc60fd1e42c644f4bcf1 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Thu, 7 Dec 2023 09:55:02 +0100 Subject: [PATCH 1/2] Add a Gitlab CI/CD section --- install/index.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/install/index.md b/install/index.md index 9cccc0de..a62647b2 100644 --- a/install/index.md +++ b/install/index.md @@ -317,3 +317,27 @@ C:\Users\username>cmake -G"Visual Studio 16 2019" -A Win32 -Thost=x64 -DCMAKE_VE C:\Users\username>cmake --build . --config Release --target install C:\Users\username>..\root_install\bin\thisroot.bat ``` + +# Using ROOT in Gitlab CI/CD + +Here is an example on how to add ROOT into a Gitlab CI/CD from CVMFS, provided by one of our user on the [ROOT Forum](https://root-forum.cern.ch/t/gitlab-ci-using-root/57375/9): + +```yml +image: rootproject/root:latest + +cmvfs: + stage: build + script: + - echo "CERN CVMFS repository" + - ls -ls /cvmfs/sft.cern.ch/lcg/app/releases/ + tags: + - cvmfs + +root: + stage: build + script: + - echo -ne "ROOT Version " + - which root + - echo "ROOT Features" + - root-config --features +``` From c7d3c66982c705ecb74a85099f97f7f03798ee8a Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Thu, 7 Dec 2023 14:14:17 +0100 Subject: [PATCH 2/2] Update from original author --- install/index.md | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/install/index.md b/install/index.md index a62647b2..871bce8c 100644 --- a/install/index.md +++ b/install/index.md @@ -318,26 +318,34 @@ C:\Users\username>cmake --build . --config Release --target install C:\Users\username>..\root_install\bin\thisroot.bat ``` -# Using ROOT in Gitlab CI/CD +# ROOT in Gitlab CI/CD (CERN) -Here is an example on how to add ROOT into a Gitlab CI/CD from CVMFS, provided by one of our user on the [ROOT Forum](https://root-forum.cern.ch/t/gitlab-ci-using-root/57375/9): +Below are practical examples demonstrating how to integrate ROOT into a GitLab CI/CD instance, provided by one of our users on the ROOT Forum. + +## Using CVMFS + +```yml +#image: + +your_task: +stage: build +script: +- echo "CERN CVMFS repository" +- ls -ls /cvmfs/sft.cern.ch/lcg/app/releases/ +tags: +- cvmfs +``` + +## Using Docker containers ```yml image: rootproject/root:latest -cmvfs: - stage: build - script: - - echo "CERN CVMFS repository" - - ls -ls /cvmfs/sft.cern.ch/lcg/app/releases/ - tags: - - cvmfs - -root: - stage: build - script: - - echo -ne "ROOT Version " - - which root - - echo "ROOT Features" - - root-config --features +your_task: +stage: build +script: +- echo -ne "ROOT Version " +- which root +- echo "ROOT Features" +- root-config --features ```