Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dorie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dorie
dorie
Commits
09f517d7
Commit
09f517d7
authored
Jun 15, 2018
by
Lukas Riedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use YAML anchors to increase maintainability of CI config
parent
af22b6d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
56 deletions
+9
-56
.gitlab-ci.yml
.gitlab-ci.yml
+9
-56
No files found.
.gitlab-ci.yml
View file @
09f517d7
...
...
@@ -25,7 +25,7 @@ stages:
-
test
-
deploy
setup:dune-env:
setup:dune-env:
&setup
stage
:
setup
only
:
-
web
# activate through 'Run pipeline' only.
...
...
@@ -45,19 +45,11 @@ setup:dune-env:
-
docker push $DUNE_ENV_IMAGE
prep:update-dune:
<<
:
*setup
stage
:
prep
only
:
-
master
-
tags
tags
:
-
dind
image
:
docker:stable
services
:
-
docker:dind
variables
:
DOCKER_DRIVER
:
overlay2
before_script
:
-
$DOCKER_LOGIN
script
:
-
docker build -f docker/dune-env-update.dockerfile
--build-arg DUNE_ENV_IMAGE=$DUNE_ENV_IMAGE --build-arg PROCNUM=$CPUS_DIND
...
...
@@ -95,7 +87,7 @@ build:debug:
-
MAKE_FLAGS="$MAKE_FLAGS"
$DUNECONTROL --only=dorie make build_tests
test:exec_cmds:
test:exec_cmds:
&test
stage
:
test
dependencies
:
-
build:main
...
...
@@ -109,60 +101,30 @@ test:exec_cmds:
expire_in
:
1 day
test:ode:
stage
:
test
dependencies
:
-
build:main
<<
:
*test
script
:
-
$DUNECONTROL --only=dorie configure
-
$DUNECONTROL --only=dorie make test_run_ode
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
$CI_PROJECT_DIR/build-cmake/Testing
expire_in
:
1 day
test:parallel:
stage
:
test
dependencies
:
-
build:main
tags
:
-
multicore
<<
:
*test
script
:
-
$DUNECONTROL --only=dorie configure
-
$DUNECONTROL --only=dorie make test_run_parallel
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
$CI_PROJECT_DIR/build-cmake/Testing
expire_in
:
1 day
test:reference:
stage
:
test
dependencies
:
-
build:main
<<
:
*test
script
:
-
$DUNECONTROL --only=dorie configure
-
$DUNECONTROL --only=dorie make test_run_ref
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
$CI_PROJECT_DIR/build-cmake/Testing
expire_in
:
1 day
test:mass_conserve:
stage
:
test
dependencies
:
-
build:main
<<
:
*test
script
:
-
$DUNECONTROL --only=dorie configure
-
$DUNECONTROL --only=dorie make test_mass_conservation
artifacts
:
name
:
"
$CI_JOB_NAME"
paths
:
-
$CI_PROJECT_DIR/build-cmake/Testing
expire_in
:
1 day
deploy:dockerhub-devel:
deploy:dockerhub-devel:
&deploy
stage
:
deploy
only
:
-
master@dorie/dorie
...
...
@@ -182,18 +144,9 @@ deploy:dockerhub-devel:
-
docker push dorie/dorie:devel
deploy:dockerhub-stable:
stage
:
deploy
<<
:
*
deploy
only
:
-
tags@dorie/dorie
tags
:
-
dind
image
:
docker:stable
services
:
-
docker:dind
variables
:
DOCKER_DRIVER
:
overlay2
before_script
:
-
$DOCKER_LOGIN
script
:
-
docker build -f docker/dorie.dockerfile
--build-arg DUNE_ENV_IMAGE=$DUNE_ENV_IMAGE --build-arg PROCNUM=$CPUS_DIND
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment