Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
8aaa882a
Commit
8aaa882a
authored
4 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[ci] remove duplication in python stage
parent
4a690bf5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!47
More ci fixes
Pipeline
#65353
passed
4 years ago
Stage: images
Stage: cpp
Stage: headercheck
Stage: python
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/gitlab/config.yml
+30
-133
30 additions, 133 deletions
.ci/gitlab/config.yml
.ci/gitlab/config_template.py
+17
-1
17 additions, 1 deletion
.ci/gitlab/config_template.py
with
47 additions
and
134 deletions
.ci/gitlab/config.yml
+
30
−
133
View file @
8aaa882a
...
...
@@ -3,8 +3,8 @@
stages
:
-
images
-
cpp
-
python
-
headercheck
-
python
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
...
...
@@ -121,18 +121,6 @@ common unstable_gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
common unstable_gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian-unstable_gcc_full
TESTS_MODULE_SUBDIR
:
common
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian-unstable_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
common unstable_gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -157,18 +145,6 @@ grid unstable_gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
grid unstable_gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian-unstable_gcc_full
TESTS_MODULE_SUBDIR
:
grid
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian-unstable_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
grid unstable_gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -193,18 +169,6 @@ functions unstable_gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
functions unstable_gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian-unstable_gcc_full
TESTS_MODULE_SUBDIR
:
functions
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian-unstable_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
functions unstable_gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -229,18 +193,6 @@ la unstable_gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
la unstable_gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian-unstable_gcc_full
TESTS_MODULE_SUBDIR
:
la
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian-unstable_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
la unstable_gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -265,18 +217,6 @@ common gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
common gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_gcc_full
TESTS_MODULE_SUBDIR
:
common
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
common gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -301,18 +241,6 @@ grid gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
grid gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_gcc_full
TESTS_MODULE_SUBDIR
:
grid
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
grid gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -337,18 +265,6 @@ functions gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
functions gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_gcc_full
TESTS_MODULE_SUBDIR
:
functions
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
functions gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -373,18 +289,6 @@ la gcc_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
la gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_gcc_full
TESTS_MODULE_SUBDIR
:
la
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
la gcc_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -407,16 +311,6 @@ common clang_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
common clang_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_clang_full
TESTS_MODULE_SUBDIR
:
common
stage
:
python
needs
:
[
"
debian_clang_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
common clang_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -437,16 +331,6 @@ grid clang_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
grid clang_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_clang_full
TESTS_MODULE_SUBDIR
:
grid
stage
:
python
needs
:
[
"
debian_clang_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
grid clang_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -467,16 +351,6 @@ functions clang_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
functions clang_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_clang_full
TESTS_MODULE_SUBDIR
:
functions
stage
:
python
needs
:
[
"
debian_clang_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
functions clang_full headercheck
:
extends
:
.subdir-test
variables
:
...
...
@@ -497,23 +371,46 @@ la clang_full cpp:
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_cpp.bash
la clang_full
python
:
la clang_full
headercheck
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_clang_full
TESTS_MODULE_SUBDIR
:
la
stage
:
python
stage
:
headercheck
needs
:
[
"
debian_clang_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_headercheck.bash
unstable_gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian-unstable_gcc_full
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian-unstable_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
la clang_full headercheck
:
gcc_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_gcc_full
tags
:
-
dustin
stage
:
python
needs
:
[
"
debian_gcc_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
clang_full python
:
extends
:
.subdir-test
variables
:
CI_IMAGE
:
debian_clang_full
TESTS_MODULE_SUBDIR
:
la
stage
:
headercheck
stage
:
python
needs
:
[
"
debian_clang_full"
]
script
:
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_
headercheck
.bash
-
/home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_
python
.bash
This diff is collapsed.
Click to expand it.
.ci/gitlab/config_template.py
+
17
−
1
View file @
8aaa882a
...
...
@@ -8,6 +8,7 @@ stages:
{%- for kind in kinds %}
- {{kind}}
{%- endfor %}
- python
variables:
GIT_SUBMODULE_STRATEGY: recursive
...
...
@@ -120,6 +121,21 @@ variables:
- /home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_{{kind}}.bash
{% endfor %}
{% for image in images %}
{{ image[image.find(
'
debian
'
)+1+6:] }} python:
extends: .subdir-test
variables:
CI_IMAGE: {{ image }}
{%- if
'
gcc
'
in image %}
tags:
- dustin
{%- endif %}
stage: python
needs: [
"
{{image}}
"
]
script:
- /home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
{% endfor %}
'''
import
os
...
...
@@ -129,7 +145,7 @@ from itertools import product
tpl
=
jinja2
.
Template
(
tpl
)
images
=
[
'
debian-unstable_gcc_full
'
,
'
debian_gcc_full
'
,
'
debian_clang_full
'
]
subdirs
=
[
'
common
'
,
'
grid
'
,
'
functions
'
,
'
la
'
]
kinds
=
[
'
cpp
'
,
'
python
'
,
'
headercheck
'
]
kinds
=
[
'
cpp
'
,
'
headercheck
'
]
matrix
=
product
(
images
,
subdirs
,
kinds
)
with
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
config.yml
'
),
'
wt
'
)
as
yml
:
yml
.
write
(
tpl
.
render
(
matrix
=
matrix
,
images
=
images
,
kinds
=
kinds
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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