-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
79 lines (72 loc) · 1.74 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Docker images all from:
# https://github.com/root-project/root-docker
# C++11 images
build-centos7:
stage: build
image: rootproject/root:6.22.02-centos7
before_script:
- yum install libXmu-devel motif-devel -y
script:
- rm -rf build
- mkdir build
- cd build
- cmake3 -DCMAKE_INSTALL_PREFIX=/usr/local -DROOTSYS=/usr/lib ../
- make -j4
- make install
artifacts:
paths:
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
# cache:
# paths:
# - "*.o"
# Docker image chosen to match build instructions at:
# https://garfieldpp.web.cern.ch/garfieldpp/getting-started/
build-centos7-view97:
stage: build
image: rootproject/root:6.22.02-centos7
before_script:
- yum install libXmu-devel motif-devel -y
script:
- source /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc9-opt/setup.sh
- rm -rf build
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../
- make -j4
- make install
build-ubuntu:
stage: build
image: rootproject/root:latest
script:
- rm -rf build
- mkdir build
- cd build
- cmake -DROOTSYS=/usr/lib ../
- make -j4
- make install
# C++14 images
build-fedora32:
stage: build
image: rootproject/root:6.22.02-fedora32
script:
- rm -rf build
- mkdir build
- cd build
- cmake -DROOTSYS=/usr/lib ../
- make -j4
- make install
build-fedora33:
stage: build
image: rootproject/root:6.22.06-fedora33
script:
- rm -rf build
- mkdir build
- cd build
- cmake -DROOTSYS=/usr/lib ../
- make -j4
- make install
# run tests using the binary built before
#test:
# stage: test
# script:
# - ./runmytests.sh