-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (57 loc) · 1.24 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
stages:
- build
- run
- test
build_code:
stage: build
image: atlas/analysisbase:21.2.121
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- source /home/atlas/release_setup.sh
# Need to remove extra xAH from FactoryTools
- cd source/DHNLAlgorithm/deps/DVAnalysisBase/
- source util/dependencyHack.sh
- cd ../../../../
- mkdir build
- cd build
script:
- cmake ../source/
- cmake --build .
after_script:
- source "${AnalysisBase_PLATFORM}/setup.sh"
# only:
# changes:
# - source
artifacts:
paths:
- build
expire_in: 1 day
build_image:
stage: build
variables:
TO: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
GIT_SUBMODULE_STRATEGY: recursive
# only:
# changes:
# - source
tags:
- docker-image-build
script:
- ignore
run_DHNLAlgorithm:
stage: run
dependencies:
- build_image
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
before_script:
- printf $SERVICE_PASS | kinit [email protected]
script:
- source /release_setup.sh
- source /code/build/*/setup.sh
- cd scripts
- bash test_run.sh
artifacts:
paths:
- scripts/testRun
expire_in: 1 week