Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klaus Noelp
ebrains-spack-builds
Commits
1ca11736
Commit
1ca11736
authored
2 years ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
bd0f8ae5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-3
6 additions, 3 deletions
.gitlab-ci.yml
with
6 additions
and
3 deletions
.gitlab-ci.yml
+
6
−
3
View file @
1ca11736
...
@@ -298,7 +298,6 @@ sync-gitlab-spack-instance:
...
@@ -298,7 +298,6 @@ sync-gitlab-spack-instance:
SPACK_USER_CONFIG_PATH
:
$SPACK_PATH/.spack
SPACK_USER_CONFIG_PATH
:
$SPACK_PATH/.spack
SPACK_REPO_PATH
:
$SPACK_PATH/ebrains-spack-builds
SPACK_REPO_PATH
:
$SPACK_PATH/ebrains-spack-builds
script
:
script
:
-
rm -rf /mnt/build_logs/
-
|
-
|
if [ ! -d $SPACK_PATH ]; then
if [ ! -d $SPACK_PATH ]; then
git clone --depth 1 -c advice.detachedHead=false -c feature.manyFiles=true --branch $SPACK_VERSION https://github.com/spack/spack $SPACK_PATH
git clone --depth 1 -c advice.detachedHead=false -c feature.manyFiles=true --branch $SPACK_VERSION https://github.com/spack/spack $SPACK_PATH
...
@@ -312,7 +311,7 @@ sync-gitlab-spack-instance:
...
@@ -312,7 +311,7 @@ sync-gitlab-spack-instance:
-
spack load gcc@10.3.0
-
spack load gcc@10.3.0
-
spack compiler find
-
spack compiler find
-
spack compiler list
-
spack compiler list
-
spack install python@3.8.11 %gcc@10.3.0 || (cp -r /tmp/spack/spack-stage
/mnt
/build_logs; exit 1)
-
spack install python@3.8.11 %gcc@10.3.0 || (cp -r /tmp/spack/spack-stage
$CI_PROJECT_DIR
/build_logs; exit 1)
# - for section in $(spack config list); do spack config blame $section; done
# - for section in $(spack config list); do spack config blame $section; done
-
mkdir -p $SPACK_REPO_PATH && cp -r -t $SPACK_REPO_PATH $CI_PROJECT_DIR/{packages,repo.yaml}
-
mkdir -p $SPACK_REPO_PATH && cp -r -t $SPACK_REPO_PATH $CI_PROJECT_DIR/{packages,repo.yaml}
-
spack repo list | grep -q ebrains-spack-builds && echo "Repository registered already" || spack repo add $SPACK_REPO_PATH
-
spack repo list | grep -q ebrains-spack-builds && echo "Repository registered already" || spack repo add $SPACK_REPO_PATH
...
@@ -321,11 +320,15 @@ sync-gitlab-spack-instance:
...
@@ -321,11 +320,15 @@ sync-gitlab-spack-instance:
-
spack env activate $SPACK_NFS_ENV
-
spack env activate $SPACK_NFS_ENV
-
cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml
-
cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml
-
spack concretize -f
-
spack concretize -f
-
spack install --no-check-signature || (cp -r /tmp/spack/spack-stage
/mnt
/build_logs; exit 1)
-
spack install --no-check-signature || (cp -r /tmp/spack/spack-stage
$CI_PROJECT_DIR
/build_logs; exit 1)
-
spack module tcl refresh -y
-
spack module tcl refresh -y
-
spack reindex
-
spack reindex
-
spack env loads -r
-
spack env loads -r
timeout
:
2 days
timeout
:
2 days
artifacts
:
paths
:
-
build_logs/
when
:
on_failure
rules
:
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
=~
/test-spack-0.18.1/'
-
if
:
'
$CI_COMMIT_BRANCH
=~
/test-spack-0.18.1/'
when
:
manual
when
:
manual
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment