.gitlab-ci.yml 1.35 KB
Newer Older
1
2
3
4
5
6
7
unit_tests_with_coverage:
  # A job is always executed within a stage.
  # If no stage is set, it defaults to 'test'.
  stage: test
  
  # Here you can execute arbitrate terminal commands.
  # If any of the commands returns a non zero exit code the job fails.
8
9
10
  # 
  # Watch out: OpenCL code cannot be run on virtual machine. Therefore,
  # skip this tests.
11
  #
12
13
  # The comma-separated list of tests after "-Dtest=<list>" is skipped.
  # All other tests are executed normally.
14
  #
15
16
17
18
19
20
21
  # Watch out: on some CI instances the exclamation mark must be escaped by a
  # backslash. Otherwise, it is interpreted by the executing shell as special
  # command.
  #
  # Following syntaxes allow you to skip whole classes and single methods:
  #
  #   #Exclude one test class
22
23
24
25
26
27
28
  #   mvn test -Dtest=!LegacyTest
  #   # Exclude one test method
  #   mvn verify -Dtest=!LegacyTest#testFoo
  #   # Exclude two test methods
  #   mvn verify -Dtest=!LegacyTest#testFoo+testBar
  #   # Exclude a package with a wildcard (*)
  #   mvn test -Dtest=!com.mycompany.app.Legacy*
29
  script:
Benedikt Kleinmeier's avatar
Benedikt Kleinmeier committed
30
    - mvn clean
Benedikt Zoennchen's avatar
Benedikt Zoennchen committed
31
    - mvn test -Dtest=!TestConvolution,!TestBitonicSort,!TestCLLinkedList
32
    - python3 Tools/collect_line_and_branch_coverage.py
33
34
35
36
37
38

run_scenario_files:
  stage: deploy

  script:
      - mvn clean
39
      - mvn package -Dmaven.test.skip=true
40
      - python3 Tools/run_vadere_console_with_all_scenario_files.py
41