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
7805b049
Commit
7805b049
authored
1 year ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
use notebook as test for multi-area-model workflow package
parent
2d1adc2e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
packages/wf-multi-area-model/package.py
+21
-3
21 additions, 3 deletions
packages/wf-multi-area-model/package.py
spack.yaml
+1
-1
1 addition, 1 deletion
spack.yaml
with
24 additions
and
5 deletions
.gitlab-ci.yml
+
2
−
1
View file @
7805b049
...
...
@@ -207,7 +207,7 @@ build-spack-env-on-runner:
-
|
# succesfully installed packages: keep the spack logs for any package modified during this CI job
SPACK_PACKAGES_DIR=$SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0
if cp --parents $SPACK_PACKAGES_DIR/*/.spack/*.txt ./; then
if cp --parents $SPACK_PACKAGES_DIR/*/.spack/*.txt
$SPACK_PACKAGES_DIR/*/.spack_test_results/*
./; then
mv .$SPACK_PACKAGES_DIR spack_logs/installed
else
echo "No packages installed, so no logs to collect"
...
...
@@ -290,6 +290,7 @@ sync-gitlab-spack-instance:
# (we use repo.yaml, that is modified at each start of the pipeline, as a reference file)
SPACK_PACKAGES_DIR=$SPACK_PATH/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0
if find $SPACK_PACKAGES_DIR/*/.spack/*.txt -newer $SPACK_REPO_PATH/repo.yaml -exec cp --parents -r "{}" ./ \;; then
cp --parents -r $SPACK_PACKAGES_DIR/*/.spack_test_results/* ./
mv .$SPACK_PACKAGES_DIR spack_logs/installed
else
echo "No packages installed, so no logs to collect"
...
...
This diff is collapsed.
Click to expand it.
packages/wf-multi-area-model/package.py
+
21
−
3
View file @
7805b049
...
...
@@ -6,15 +6,33 @@
from
spack
import
*
class
WfMultiAreaModel
(
Bundle
Package
):
class
WfMultiAreaModel
(
Package
):
"""
Meta-package to collect all dependencies of the Multi-Area-Model.
"""
homepage
=
"
https://inm-6.github.io/multi-area-model/
"
git
=
"
https://github.com/INM-6/multi-area-model
"
#git = "https://github.com/INM-6/multi-area-model"
git
=
"
https://github.com/terhorstd/multi-area-model
"
maintainer
=
[
"
terhorstd
"
]
version
(
"
0.1
"
)
version
(
"
master
"
,
branch
=
"
master
"
)
version
(
"
ebrains
"
,
branch
=
"
lab.ebrains.eu
"
)
depends_on
(
"
py-nested-dict
"
)
depends_on
(
"
py-dicthash
"
)
depends_on
(
"
py-matplotlib
"
)
depends_on
(
"
py-numpy
"
)
depends_on
(
"
py-scipy
"
)
depends_on
(
"
py-future
"
)
depends_on
(
"
nest
"
)
depends_on
(
"
py-notebook
"
,
type
=
"
test
"
)
def
install
(
self
,
spec
,
prefix
):
# sanity_check_prefix requires something in the install directory
mkdirp
(
prefix
+
"
/.spack_test_results
"
)
@run_after
(
"
install
"
)
@on_package_attributes
(
run_tests
=
True
)
def
installcheck
(
self
):
# execute notebook and save
jupyter
=
Executable
(
"
jupyter
"
)
jupyter
(
"
nbconvert
"
,
"
--ExecutePreprocessor.kernel_name=python3
"
,
"
--execute
"
,
"
--allow-errors
"
,
"
--to
"
,
"
notebook
"
,
"
multi-area-model.ipynb
"
,
"
--output
"
,
prefix
+
"
/.spack_test_results/multi-area-model.ipynb
"
)
This diff is collapsed.
Click to expand it.
spack.yaml
+
1
−
1
View file @
7805b049
...
...
@@ -62,7 +62,7 @@ spack:
-
wf-biobb
-
wf-brainscales2-demos
-
wf-uq-akar4@0.1
-
wf-multi-area-model@
0.1
-
wf-multi-area-model@
ebrains
#- py-cerebstats
#- py-cerebunit
#- py-morphounit@1.0.4
...
...
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