Skip to content
Snippets Groups Projects
Commit cf8a836f authored by Athanasios Karmas's avatar Athanasios Karmas
Browse files

Update .gitlab-ci.yml

parent 0a065403
No related branches found
No related tags found
No related merge requests found
...@@ -7,39 +7,46 @@ default: ...@@ -7,39 +7,46 @@ default:
- docker-runner - docker-runner
# Generate the "spack pipeline" and build it # Generate the "spack pipeline" and build it
# ECM: we could introduce generate-for-gcc in the beginning, would allow for
# clingo usage in later generate step
# => $ spack external find cmake bison
# => # trigger use of clingo to get it installed
# => $ spack solve zlib
# => $ spack find --bootstrap
stages: stages:
- generate - generate
- build - build
# UHEI spack version and branch # UHEI spack version and branch
variables: variables:
SPACK_REPO: https://github.com/electronicvisions/spack # ebrains_testing (was "visionary") contains bug fix for failing uid =>
# ebrains_testing contains bug fix for failing uid => username lookup in container # username lookup in container
# (was "visionary") SPACK_REPO: https://github.com/electronicvisions/spack
SPACK_REF: ebrains_testing SPACK_REF: ebrains_testing
generate-pipeline: generate-pipeline:
stage: generate stage: generate
before_script: before_script:
# clone spack and set checkout to correct ref # clone spack and set checkout to correct ref (variable above)
- pip3 install boto3
- git clone ${SPACK_REPO} - git clone ${SPACK_REPO}
- pushd spack && git checkout ${SPACK_REF} && git log -n 1 && popd - pushd spack && git checkout ${SPACK_REF} && git log -n 1 && popd
- . "./spack/share/spack/setup-env.sh" - . "./spack/share/spack/setup-env.sh"
script:
# add system compiler # add system compiler
- spack compiler find - spack compiler find
# print some infos about the environment # print some infos about the environment
- spack compilers - spack compilers
- spack arch - spack arch
# ... system compiler is "gcc@4.8.5" # ... system compiler is "gcc@4.8.5"
script:
# activate env (spack.yaml) and generate pipeline.yml for the build step # activate env (spack.yaml) and generate pipeline.yml for the build step
- spack -d env activate --without-view . - spack -d env activate --without-view .
- spack -d ci generate --optimize - spack -d ci generate
--artifacts-root "${CI_PROJECT_DIR}/jobs_scratch_dir/"
--output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/pipeline.yml" --output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/pipeline.yml"
artifacts: artifacts:
paths: paths:
- "${CI_PROJECT_DIR}/jobs_scratch_dir/pipeline.yml" - "${CI_PROJECT_DIR}/jobs_scratch_dir"
build-jobs: build-jobs:
stage: build stage: build
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment