forked from JeffersonLab/coatjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
147 lines (132 loc) · 3.13 KB
/
.gitlab-ci.yml
File metadata and controls
147 lines (132 loc) · 3.13 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
image: codecr.jlab.org/hallb/clas12/container-forge/base:latest
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
auto_cancel:
on_new_commit: interruptible
- if: $CI_COMMIT_BRANCH == "main"
auto_cancel:
on_new_commit: conservative
- if: $CI_COMMIT_TAG
auto_cancel:
on_new_commit: conservative
default:
interruptible: true
stages:
- build
- test
- deploy
build:
stage: build
script:
- ./build-coatjava.sh --clara -T$JL_RUNNER_AVAIL_CPU --quiet --no-progress
- tar -czf coatjava.tar.gz coatjava
- tar -czf clara.tar.gz clara
artifacts:
when: always
expire_in: 1 day
paths:
- coatjava.tar.gz
- clara.tar.gz
depana:
allow_failure: true
stage: build
script:
- libexec/dependency-tree.sh
- libexec/dependency-analysis.sh
download:
stage: build
script:
- xrdcp xroot://sci-xrootd.jlab.org///osgpool/hallb/clas12/validation/clas_005038.evio.00000 ./
- xrdcp xroot://sci-xrootd.jlab.org///osgpool/hallb/clas12/validation/raw/rg-l/clas_021559.evio.00001 ./
artifacts:
when: always
expire_in: 1 day
paths:
- clas_005038.evio.00000
- clas_021559.evio.00000
spotbugs:
stage: test
needs: [build]
dependencies: [build]
script:
- >
tar -xzf coatjava.tar.gz &&
./build-coatjava.sh -T$JL_RUNNER_AVAIL_CPU --spotbugs --quiet --no-progress
unit_tests:
stage: test
needs: [build]
dependencies: [build]
script:
- >
tar -xzf coatjava.tar.gz &&
./build-coatjava.sh -T$JL_RUNNER_AVAIL_CPU --unittests --quiet --no-progress &&
./validation/jacoco-aggregate.sh
artifacts:
when: always
expire_in: 1 day
paths:
- publish
docs:
stage: test
needs: [build,unit_tests]
dependencies: [build,unit_tests]
script:
- >
tar -xzf coatjava.tar.gz &&
python3 -m venv venv &&
source venv/bin/activate &&
python3 -m pip install -r docs/mkdocs/requirements.txt &&
./docs/mkdocs/generate.sh pages &&
libexec/build-javadocs.sh &&
ls -l && ls -l pages && ls -l publish &&
mv target/reports/apidocs pages/javadoc &&
cp -r publish pages/jacoco
artifacts:
when: always
expire_in: 7 days
paths:
- pages
eb:
stage: test
needs: [build]
dependencies: [build]
script:
- >
tar -xzf coatjava.tar.gz &&
cd validation/advanced-tests &&
./run-eb-tests.sh -100 ${ARG}
parallel:
matrix:
- ARG: electronproton
- ARG: electronprotonC
- ARG: electrongamma
- ARG: electronneutronC
- ARG: electronFTpion
clara:
allow_failure: true
stage: test
needs: [build]
dependencies: [build]
script:
- >
tar -xzf clara.tar.gz &&
./clara/plugins/clas12/bin/run-clara -c ./clara
-t $JL_RUNNER_AVAIL_CPU -y ./etc/services/rgl-clarode.yml
-n 100 -o ./out clas_021*.hipo
profile:
stage: test
needs: [build]
dependencies: [build]
script:
- >
tar -xzf coatjava.tar.gz &&
libexec/profile.sh
deploy:
stage: deploy
script:
- echo DEPLOY!!!
release:
stage: deploy
script:
- echo RELEASE!!!