-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
123 lines (109 loc) · 2.48 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
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
include:
- project: hpc/gitlab-pipelines
file:
- github-project-pipelines.gitlab-ci.yml
- spack-build.gitlab-ci.yml
- project: nse/ci
file:
- ci/lib/tox-bb5.yml
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "web"
- if: "$CI_EXTERNAL_PULL_REQUEST_IID"
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
- if: $CI_COMMIT_TAG
default:
tags: [bb5_map]
stages:
- build
- test
variables:
SPACK_PACKAGE: py-multiscale-run
SPACK_PACKAGE_DEPENDENCIES: ^hdf5~cxx
.tox-template:
tags: [bb5_map]
variables:
EXTRA_MODULES:
unstable:gcc
unstable:git
unstable:gmsh
unstable:hpe-mpi
unstable:julia
unstable:neurodamus-neocortex-multiscale
unstable:petsc
unstable:py-libsonata
unstable:py-mpi4py
unstable:py-notebook
unstable:py-numpy
unstable:py-petsc4py
unstable:py-scipy
unstable:steps
pytest:
extends: .spack_test
script:
# Tell Git how to re-write BBP GitLab URLs to use a token instead of SSH
- !reference [.bbp_gitlab_access, script]
- !reference [.spack_test, script]
# TODO: reinstate when ratV10 is working
# integration:
# extends: .spack_test
# timeout: 10 minutes
# variables:
# bb5_duration: "00:10:00"
# bb5_ntasks: 2
.nrun:
extends: .spack_test
timeout: 4 hours
artifacts:
when: always
paths:
- msr-sim-$CI_JOB_NAME_SLUG/RESULTS/*
expire_in: 4 hours
variables:
bb5_memory: 32G
bb5_ntasks: 4
bb5_duration: "04:00:00"
circuit: "rat_sscxS1HL_V10_CI"
script:
- spack ${SPACK_EXTRA_FLAGS} load /${SPACK_INSTALLED_HASH}
- ${SPACK_SOURCE_DIR}/.ci/test_simulation.sh
.dualrun:
extends: .nrun
timeout: 2 hours
variables:
steps: "true"
metabolism: "false"
bloodflow: "false"
dualrun 1/16:
extends: .dualrun
variables:
bb5_ntasks: 1
bb5_duration: "02:00:00"
tstop: 105
dualrun 2/16:
extends: .dualrun
variables:
bb5_ntasks: 2
tstop: 105
dualrun 16/16:
extends: .dualrun
variables:
bb5_ntasks: 16
ratV10_CI_nrun_[steps, metab, bf]:
extends: .nrun
parallel:
matrix:
- steps: ["false", "true"]
metabolism: ["false", "true"]
bloodflow: ["false", "true"]
init_julia_create_test:
extends: .spack_test
timeout: 1 hours
when: manual
variables:
bb5_duration: "01:00:00"
bb5_ntasks: 2
script:
- spack ${SPACK_EXTRA_FLAGS} load /${SPACK_INSTALLED_HASH}
- ${SPACK_SOURCE_DIR}/.ci/test_init_julia_create.sh