.gitlab-ci.yml 2.39 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# # GitLab CI Jobs
#
# Each of the jobs defined here is triggered by GitLab's CI pipeline.
#
# ## GitLab YAML Job Description Syntax
#
# <job_name>:                   # Job name which is displayed in web interface.
#   stage: <stage_name>         # <build|test|deploy>: these stages are executed
#                               # one after another. A stage can contain multiple
#                               # jobs.
#   script:
#      - <arbitrary_commands>   # Here you can execute arbitratry terminal
#                               # commands. If any of the commands return a
#                               # non-zero exit code, the job fails.
#
# ## Maven Syntax for Skipping Unit Tests
#
# General syntax to execute unit tests:
#
# ```
# mvn test
# ```
#
# The comma-separated list of tests after "-Dtest=<list>" is skipped. All other
# tests are executed normally:
#
# ```
# mvn -Dtest=!TestClassA,!TestClassB,!TestClassC
# ```
#
# **Note:** on some CI instances the exclamation mark must be escaped by a
# backslash. Otherwise, it is interpreted by the executing shell as special
# command.
#
# ## Unit Test Limitations
#
# **Watch out:** OpenCL code cannot be run on virtual machines where tests are
# executed. Therefore, skip this tests.

40
41
42
43
unit_tests_with_coverage:
  stage: test
  
  script:
44
    - Documentation/version-control/git-hook-vadere-software
Benedikt Kleinmeier's avatar
Benedikt Kleinmeier committed
45
    - mvn clean
Benedikt Zoennchen's avatar
Benedikt Zoennchen committed
46
    - mvn -Dtest=!TestConvolution,!TestBitonicSort,!TestCLLinkedList,!TestCLOptimalStepsModel test
47
    - python3 Tools/ContinuousIntegration/collect_line_and_branch_coverage.py
48

49
50
# run_scenario_files:
#   stage: deploy
51

52
53
54
55
56
#   script:
#       - Documentation/version-control/git-hook-vadere-software
#       - mvn clean
#       - mvn -Dmaven.test.skip=true package
#       - python3 Tools/ContinuousIntegration/run_vadere_console_with_all_scenario_files.py
57

58
59
60
61
62
63
64
run_origin_test:
  stage: deploy

  script:
      - Documentation/version-control/git-hook-vadere-software
      - mvn clean
      - mvn -Dmaven.test.skip=true package
Stefan Schuhbaeck's avatar
Stefan Schuhbaeck committed
65
      - python3 Tools/VadereAnalysisTool/setup.py install --user
66
67
      - python3 Tools/ContinuousIntegration/run_orign_translation_test.py

68
69
70
71
72
73
74
run_seed_test:
  stage: deploy

  script:
      - Documentation/version-control/git-hook-vadere-software
      - mvn clean
      - mvn -Dmaven.test.skip=true package
Stefan Schuhbaeck's avatar
Stefan Schuhbaeck committed
75
      - python3 Tools/VadereAnalysisTool/setup.py install --user
76
      - python3 Tools/ContinuousIntegration/run_seed_comparison_test.py