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
91 lines (81 loc) · 1.87 KB
/
.gitlab-ci.yml
File metadata and controls
91 lines (81 loc) · 1.87 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
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
before_script:
# FIXME: build minimal el9 container, or use container-forge
- dnf install -y java-21-openjdk maven wget tree ruby python3-pip
stages:
- build-stage
- test-stage
- deploy-stage
build:
stage: build-stage
script:
- ./build-coatjava.sh -T4 --unittests --spotbugs --quiet --no-progress
artifacts:
when: always
expire_in: 1 day
paths:
- coatjava
depana:
allow_failure: true
stage: test-stage
dependencies: [build]
script:
- libexec/dependency-tree.sh
- libexec/dependency-analysis.sh
eb:
stage: test-stage
dependencies: [build]
script:
- cd validation/advanced-tests && ./run-eb-tests.sh -100 ${ARG}
parallel:
matrix:
- ARG: electronproton
- ARG: electronprotonC
- ARG: electrongamma
- ARG: electronneutronC
- ARG: electronFTpion
jacoco:
allow_failure: true
stage: test-stage
needs: [build]
dependencies: [build]
script:
- ./validation/jacoco-aggregate.sh
artifacts:
when: always
expire_in: 1 day
paths:
- publish
docs:
stage: test-stage
needs: [build,jacoco]
dependencies: [build,jacoco]
script:
- python3 -m pip install -r docs/mkdocs/requirements.txt
- ./docs/mkdocs/generate.sh pages
- libexec/build-javadocs.sh
- mv target/reports/apidocs pages/javadoc
- mv publish pages/jacoco
artifacts:
when: always
expire_in: 7 days
paths:
- pages
#deploy:
# stage: deploy-stage
# dependencies: [docs,jacoco,depana]
#release:
# stage: deploy-stage
# dependencies: [deploy]