Skip to content
Snippets Groups Projects
Commit 196aa628 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Moving modules in deploy and changing deploy to do an installation

without padding
parent 335e5213
No related branches found
No related tags found
No related merge requests found
Pipeline #200715 failed
...@@ -6,7 +6,6 @@ stages: ...@@ -6,7 +6,6 @@ stages:
- compilers - compilers
- concretize - concretize
- install - install
- modules
- deploy - deploy
workflow: workflow:
...@@ -144,6 +143,7 @@ spack:install: ...@@ -144,6 +143,7 @@ spack:install:
--fail-fast --fail-fast
--show-log-on-error --show-log-on-error
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} find -vl | tee spack-find-${environment}-${stack}.log
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} - ${STACK_LOCATION}/spack/bin/spack -e ${environment}
buildcache create buildcache create
--update-index --update-index
...@@ -152,29 +152,12 @@ spack:install: ...@@ -152,29 +152,12 @@ spack:install:
needs: needs:
- job: spack:concretize - job: spack:concretize
artifacts: artifacts:
paths:
- spack-find-*.log
reports: reports:
junit: spack-install-*.xml junit: spack-install-*.xml
timeout: 72h timeout: 72h
spack:modules:
stage: modules
extends:
- .parallel_job
- .spack_cache
script:
- source ci/stack_env.sh
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} module lmod refresh --yes | tee spack-modules-${environment}-${stack}.log
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} find -vl | tee spack-find-${environment}-${stack}.log
needs:
- job: spack:install
artifacts:
paths:
- spack-modules-*.log
- spack-find-*.log
timeout: 1h
spack:mksquashfs: spack:mksquashfs:
stage: deploy stage: deploy
extends: extends:
...@@ -183,8 +166,25 @@ spack:mksquashfs: ...@@ -183,8 +166,25 @@ spack:mksquashfs:
script: script:
- source ci/stack_env.sh - source ci/stack_env.sh
- ${STACK_LOCATION}/spack/bin/spack
-c "config:install_tree:padded_length:False"
-e ${environment} install
--log-file spack-install-${environment}.xml
--log-format junit
--only-concrete
--fail-fast
--show-log-on-error
- ${STACK_LOCATION}/spack/bin/spack
-c "config:install_tree:padded_length:False"
-e ${environment} module
lmod refresh --yes | tee spack-modules-${environment}-${stack}.log
- echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/stack/${stack}/stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs"
- "mksquashfs ${STACK_LOCATION} stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs" - "mksquashfs ${STACK_LOCATION} stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs"
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/stack/${stack}/stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs"' - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/stack/${stack}/stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs"'
needs: needs:
- job: spack:modules - job: spack:install
timeout: 10h timeout: 10h
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment