Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Gitlab CI/CD section #943

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,35 @@ 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
```

# ROOT in Gitlab CI/CD (CERN)

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
bellenot marked this conversation as resolved.
Show resolved Hide resolved

your_task:
stage: build
script:
- echo -ne "ROOT Version "
- which root
- echo "ROOT Features"
- root-config --features
```