.gitlab-ci.yml 2.68 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
unit_tests_with_coverage:
41
42
43
44
    stage: test
    
    script:
        - mvn clean
45
        - mvn -Dtest=!TestConvolution,!TestBitonicSort,!TestCLLinkedList,!TestCLOptimalStepsModel test
46
47
        - python3 Tools/ContinuousIntegration/collect_line_and_branch_coverage.py
    artifacts:
Benedikt Kleinmeier's avatar
Benedikt Kleinmeier committed
48
        when: on_success
49
50
        paths:
            - "*/target/site/coverage-reports"
51
52

run_scenario_files:
53
    stage: deploy
54

55
56
57
    script:
        - mvn -Dmaven.test.skip=true package
        - python3 Tools/ContinuousIntegration/run_vadere_console_with_all_scenario_files.py
58
    artifacts:
Benedikt Kleinmeier's avatar
Benedikt Kleinmeier committed
59
        when: on_failure
60
61
62
        paths:
            - "log_dir"
        expire_in: 1 week
63

64
65
66
# exclude. Finde solution an then add this test again.
# run_origin_test:
#   stage: deploy
67

68
69
70
71
72
73
#   script:
#       - Documentation/version-control/git-hook-vadere-software
#       - mvn clean
#       - mvn -Dmaven.test.skip=true package
#       - python3 Tools/VadereAnalysisTools/VadereAnalysisTool/setup.py install --user
#       - python3 Tools/ContinuousIntegration/run_orign_translation_test.py
74

75
run_seed_test:
76
    stage: deploy
77

78
79
80
81
82
    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
83
84
85
    artifacts:
        when: on_failure
        paths: 
Daniel Lehmberg's avatar
Daniel Lehmberg committed
86
            - "Tools/ContinuousIntegration/run_seed_comparison_test.d/output"
87
        expire_in: 1 week