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

more debug of path

parent db97a7a7
No related branches found
No related tags found
No related merge requests found
Pipeline #190727 failed
......@@ -36,12 +36,9 @@ variables:
- stack
variables:
COMMAND_OPTIONS_SBATCH: ${slurm_options}
STACK_CONFIG: ${CI_PROJECT_DIR}/stacks/${stack}/config.json
STACK_LOCATION: $(jq -r .stack.mount_point ${STACK_CONFIG})
APPTAINER_EXEC_OPTIONS: ${apptainer_options} --bind ${BUILDCACHE}:/buildcache:rw --bind ${CI_PROJECT_DIR}:${STACK_LOCATION}
SPACK_USER_CACHE_PATH: "/tmp/spack_cache_${CI_JOB_ID}"
SPACK_USER_CONFIG_PATH: "/tmp/spack_user_${CI_JOB_ID}"
SPACK_SYSTEM_CONFIG_PATH: "${STACK_LOCATION}/stack/${stack}/environment"
BUILDCACHE: "/work/scitas-ge/richart/ci/buildcache"
.spack_cache:
......@@ -90,6 +87,7 @@ spack:concretize:
- .spack_cache
- .parallel_job
script:
- source stack_env.sh
- spack/bin/spack -e ${SPACK_SYSTEM_CONFIG_PATH} config blame
- spack/bin/spack -e ${SPACK_SYSTEM_CONFIG_PATH} concretize
needs:
......@@ -105,6 +103,7 @@ spack:install:
- .spack_cache
- .parallel_job
script:
- source stack_env.sh
- spack/bin/spack -e ${SPACK_SYSTEM_CONFIG_PATH} install
--log-file spack-install.xml
--log-format junit
......
......@@ -4,9 +4,7 @@ set -o errexit
set -o pipefail
set -o nounset
STACK_CONFIG=stacks/${stack}/config.json
STACK_LOCATION=stack/${stack}
source stack_env.sh
echo "Getting system compiler"
${STACK_LOCATION}/spack/bin/spack compiler find --scope system /usr
......
......@@ -4,12 +4,7 @@ set -o errexit
set -o pipefail
set -o nounset
STACK_CONFIG_PATH=${PWD}/stacks/${stack}
STACK_CONFIG=${STACK_CONFIG_PATH}/config.json
SPACK_VERSION=$(jq -r .spack.version ${STACK_CONFIG})
#STACK_LOCATION=$(jq -r .stack.mount_point ${STACK_CONFIG})
STACK_LOCATION=${PWD}/stack/${stack}
source stack_env.sh
mkdir -p ${STACK_LOCATION}
cd ${STACK_LOCATION}
......
#!/usr/bin/env sh
STACK_CONFIG_PATH=${PWD}/stacks/${stack}
STACK_CONFIG=${STACK_CONFIG_PATH}/config.json
SPACK_VERSION=$(jq -r .spack.version ${STACK_CONFIG})
STACK_LOCATION=$(jq -r .stack.mount_point ${STACK_CONFIG})
SPACK_SYSTEM_CONFIG_PATH=${STACK_LOCATION}/stack/${stack}/environment
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