Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 5f8db1e

Browse files
authored
Enable use of this pipeline in an external test. (#506)
This allows the CoreNEURON CI to be used in regression tests of the gitlab-pipelines helper repository.
1 parent 5df61b6 commit 5f8db1e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ stages:
1414
# Set up Spack
1515
spack_setup:
1616
extends: .spack_setup_ccache
17+
script:
18+
- !reference [.spack_setup_ccache, script]
19+
# This allows us to use the CoreNEURON repository in regression tests of
20+
# the gitlab-pipelines repositories. The regression test pipeline triggers
21+
# *this* pipeline as a child, having pushed a modified branch to the GitLab
22+
# mirror of the CoreNEURON repository. We have to update the Spack recipe
23+
# to point at the GitLab mirror so the relevant commit (on the modified
24+
# branch) can be found.
25+
- if [[ "${CI_PIPELINE_SOURCE}" == "pipeline" ]]; then
26+
- cd $(spack location -p coreneuron)
27+
- sed -i -e 's#\(git\s*=\s\)"https://github.com/BlueBrain/CoreNeuron"#\1"[email protected]:hpc/coreneuron.git"#' package.py
28+
- git diff
29+
- fi
1730

1831
.spack_intel:
1932
variables:

0 commit comments

Comments
 (0)