Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multi-area-model
Manage
Activity
Members
Labels
Plan
Issues
7
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
IAS-6
multi-area-model
Commits
e567efb9
Commit
e567efb9
authored
1 year ago
by
Didi Hou
Browse files
Options
Downloads
Patches
Plain Diff
create CI configuration script
parent
eb7e053e
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
+37
-0
37 additions, 0 deletions
gitlab-ci.yml
with
37 additions
and
0 deletions
gitlab-ci.yml
0 → 100644
+
37
−
0
View file @
e567efb9
# Specify stages in this CI workflow
stages
:
-
build
-
test
-
deploy
# List variables and they can be called by the varaible names
# variables:
# GITLAB_BUILD_ENV_DOCKER_IMAGE: docker-registry.ebrains.eu/tc/ebrains-spack-build-env/gitlab_runners_nfs:gitlab_runners_nfs_23.06
# SYSTEMNAME: ebrainslab
run_notebooks
:
stage
:
test
tags
:
# Add tags for runner to select runners that meet the requirement
-
docker-runner
before_script
:
# - cat /mnt/ebrains_env/ebrains-23.09/bin/load_env.sh
-
. /mnt/ebrains_env/ebrains-23.09/bin/load_env.sh
script
:
-
echo "Starting testing..."
# List all kernels
# - jupyter kernelspec list
-
echo "Testing multi-area-model.ipynb..."
# Replace all ebrains-23.09 with python3 as the kernel ebrains-23.09 is now actually named as python3
-
sed -i -e "s/ebrains-23.09/python3/" multi-area-model.ipynb
# Convert jupyter notebook to python file and execute it
-
jupyter nbconvert --to notebook --execute ./multi-area-model.ipynb
-
echo "Testing M2E_statistical_test.ipynb..."
# Replace all ebrains-23.09 with python3 as the kernel ebrains-23.09 is now actually named as python3
-
sed -i -e "s/ebrains-23.09/python3/" M2E_statistical_test.ipynb
# Convert jupyter notebook to python file and execute it
-
jupyter nbconvert --to notebook --execute ./M2E_statistical_test.ipynb
-
echo "Testing are finished and passed!"
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