Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
34
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
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Commits
911d1eb4
Commit
911d1eb4
authored
1 year ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
generate script to load env
parent
e4049f83
No related branches found
No related tags found
No related merge requests found
Pipeline
#26089
waiting for manual action with stage
in 24 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
with
5 additions
and
0 deletions
.gitlab-ci.yml
+
5
−
0
View file @
911d1eb4
...
@@ -283,6 +283,11 @@ sync-gitlab-spack-instance:
...
@@ -283,6 +283,11 @@ sync-gitlab-spack-instance:
-
spack env activate $SPACK_NFS_ENV
-
spack env activate $SPACK_NFS_ENV
-
spack install -y -j2 --fresh --test root
-
spack install -y -j2 --fresh --test root
-
spack reindex
-
spack reindex
# create load script that when sourced activates and loads the installed spack environment, using views
# this needs deactivating the environment first:
-
spack env deactivate
-
unset SPACK_LD_LIBRARY_PATH
-
spack env activate --sh $SPACK_NFS_ENV > $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/load_env.sh
# create kernel spec, so that the environment can be used in gitlab CI jobs
# create kernel spec, so that the environment can be used in gitlab CI jobs
-
RELEASE_NAME=$(case $CI_COMMIT_BRANCH in experimental_rel) echo ebrains-experimental;; ebrains*) echo ${CI_COMMIT_BRANCH:0:10}.${CI_COMMIT_BRANCH:11};; *) echo $CI_COMMIT_BRANCH;; esac);
-
RELEASE_NAME=$(case $CI_COMMIT_BRANCH in experimental_rel) echo ebrains-experimental;; ebrains*) echo ${CI_COMMIT_BRANCH:0:10}.${CI_COMMIT_BRANCH:11};; *) echo $CI_COMMIT_BRANCH;; esac);
-
. create_JupyterLab_kernel.sh $SPACK_PATH_GITLAB $SPACK_NFS_ENV $RELEASE_NAME /mnt/ebrains_env
-
. create_JupyterLab_kernel.sh $SPACK_PATH_GITLAB $SPACK_NFS_ENV $RELEASE_NAME /mnt/ebrains_env
...
...
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