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
cf8a836f
Commit
cf8a836f
authored
3 years ago
by
Athanasios Karmas
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
0a065403
No related branches found
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
+15
-8
15 additions, 8 deletions
.gitlab-ci.yml
with
15 additions
and
8 deletions
.gitlab-ci.yml
+
15
−
8
View file @
cf8a836f
...
...
@@ -7,39 +7,46 @@ default:
-
docker-runner
# 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
:
-
generate
-
build
# UHEI spack version and branch
variables
:
SPACK_REPO
:
https://github.com/electronicvisions/spack
#
ebrains_testing contains bug fix for failing uid =>
username lookup in container
# (was "visionary")
# ebrains_testing (was "visionary") contains bug fix for failing uid =>
# username lookup in container
SPACK_REPO
:
https://github.com/electronicvisions/spack
SPACK_REF
:
ebrains_testing
generate-pipeline
:
stage
:
generate
before_script
:
# clone spack and set checkout to correct ref
-
pip3 install boto3
# clone spack and set checkout to correct ref (variable above)
-
git clone ${SPACK_REPO}
-
pushd spack && git checkout ${SPACK_REF} && git log -n 1 && popd
-
. "./spack/share/spack/setup-env.sh"
script
:
# add system compiler
-
spack compiler find
# print some infos about the environment
-
spack compilers
-
spack arch
# ... system compiler is "gcc@4.8.5"
script
:
# activate env (spack.yaml) and generate pipeline.yml for the build step
-
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"
artifacts
:
paths
:
-
"
${CI_PROJECT_DIR}/jobs_scratch_dir
/pipeline.yml
"
-
"
${CI_PROJECT_DIR}/jobs_scratch_dir"
build-jobs
:
stage
:
build
...
...
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