Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
51f1be8d
Commit
51f1be8d
authored
Feb 07, 2019
by
Benedikt Kleinmeier
Browse files
Merge GitLab job templates into ".gitlab-ci-templates.yml".
parent
89db271a
Pipeline
#89233
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci-templates.yml
0 → 100644
View file @
51f1be8d
# # GitLab CI Job Templates
#
# These templates can be used to execute jobs on different runners.
#
# Use GitLab's "include" keyword to include this file and the "extends" to
# extend a template below.
#
# For more details, see https://docs.gitlab.com/ee/ci/yaml/README.html#using-extends-and-include-together
.template_unit_tests
:
stage
:
unit_test
# Skip OpenCL tests by using "-Dtest=!Test1,!Test2,..." because GitLab
# runners do not support OpenCL.
script
:
-
mvn clean
-
mvn -Dtest=!TestConvolution,!TestBitonicSort,!TestCLLinkedList,!TestCLOptimalStepsModel test
-
python3 Tools/ContinuousIntegration/collect_line_and_branch_coverage.py
artifacts
:
when
:
on_success
paths
:
-
"
*/target/site/coverage-reports"
expire_in
:
1 week
.template_scenario_files
:
stage
:
integration_test
script
:
-
mvn clean
-
mvn -Dmaven.test.skip=true package
-
python3 Tools/ContinuousIntegration/run_vadere_console_with_all_scenario_files.py
artifacts
:
when
:
on_failure
paths
:
-
"
log_dir"
expire_in
:
1 week
.template_seed_test
:
stage
:
integration_test
script
:
-
mvn clean
-
mvn -Dmaven.test.skip=true package
-
python3 Tools/VadereAnalysisTools/VadereAnalysisTool/setup.py install --user
-
python3 Tools/ContinuousIntegration/run_seed_comparison_test.py
artifacts
:
when
:
on_failure
paths
:
-
"
Tools/ContinuousIntegration/run_seed_comparison_test.d/output"
expire_in
:
1 week
.template_deploy_branch
:
stage
:
deploy
script
:
-
mvn clean
-
mvn -Dmaven.test.skip=true package
-
python3 -m zipfile -c ${VADERE_PACKAGE_NAME} VadereModelTests/ VadereGui/target/vadere.jar VadereSimulator/target/vadere-console.jar
-
scp ${VADERE_PACKAGE_NAME} di49mur@webdev-mwn.lrz.de:~/webserver/htdocs/builds/branches/${VADERE_PACKAGE_NAME}
when
:
manual
.gitlab-ci.yml
View file @
51f1be8d
...
...
@@ -31,8 +31,14 @@ stages:
-
integration_test
-
deploy
include
:
.gitlab/ci/templates/deploy_stage_templates.yml
include
:
.gitlab/ci/templates/test_stage_templates.yml
# PLEASE, OMIT FOLLOWING GITLAB PITFALLS:
#
# 1. "include: .gitlab/ci/windows_jobs.yml" does not work!
# Seems a bug in GitLab's "include" statement. Therefore, define all jobs
# directly here.
# 2. Variables from "variables" section are not expanded correctly in "url"
# section of an "environment".
include
:
.gitlab-ci-templates.yml
# Job Definitions
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment