aboutsummaryrefslogtreecommitdiffhomepage
path: root/ci/run-tests.gitlab-ci.yml
blob: c8ad66e7b0e969952a85ce1d0bc126defe327c8a (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
.run_tests:
  allow_failure: true
  stage: test
  image: ubuntu:18.04
  before_script:
    - apt-get update -y
    - apt-get install -y --no-install-recommends software-properties-common
    - add-apt-repository -y  ppa:ubuntu-toolchain-r/test
    - apt-get update
    - apt-get install --no-install-recommends -y ${EIGEN_CI_CXX_COMPILER} ${EIGEN_CI_CC_COMPILER} cmake ninja-build xsltproc
  script:
    - echo "cd ${BUILDDIR} && ctest --output-on-failure --no-compress-output --build-no-clean -T test"
    - cd ${BUILDDIR} && ctest --output-on-failure --no-compress-output --build-no-clean -T test
  after_script:
    - apt-get update -y
    - apt-get install --no-install-recommends -y xsltproc
    - cd ${BUILDDIR}
    - xsltproc ../ci/CTest2JUnit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > "JUnitTestResults_$CI_JOB_ID.xml"
  artifacts:
    reports:
      junit:
        - ${BUILDDIR}/JUnitTestResults_$CI_JOB_ID.xml
    expire_in: 5 days

########################## Nightly running jobs ################################
# GCC 4.8
run-tests-g++-4.8-cxx11-on:
  only:
    - schedules
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: g++-4.8
    EIGEN_CI_CC_COMPILER: gcc-4.8
  needs: [ "build-tests-g++-4.8-cxx11-on" ]
  tags:
    - eigen-runner
    - x86
    - linux

run-tests-g++-4.8-cxx11-off:
  only:
    - schedules
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: g++-4.8
    EIGEN_CI_CC_COMPILER: gcc-4.8
  needs: [ "build-tests-g++-4.8-cxx11-off" ]
  tags:
    - eigen-runner
    - x86
    - linux

# Clang 10
run-tests-clang++-10-cxx11-on:
  only:
    - schedules
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: clang++-10
    EIGEN_CI_CC_COMPILER: clang-10
  needs: [ "build-tests-clang++-10-cxx11-on" ]
  tags:
    - eigen-runner
    - x86
    - linux

run-tests-clang++-10-cxx11-off:
  only:
    - schedules
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: clang++-10
    EIGEN_CI_CC_COMPILER: clang-10
  needs: [ "build-tests-clang++-10-cxx11-off" ]
  tags:
    - eigen-runner
    - x86
    - linux

# GCC 10
run-tests-g++-10-cxx11-on:
  only:
    - schedules
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: g++-10
    EIGEN_CI_CC_COMPILER: gcc-10
  needs: [ "build-tests-g++-10-cxx11-on" ]
  tags:
    - eigen-runner
    - x86
    - linux

run-tests-g++-10-cxx11-off:
  only:
    - schedules
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: g++-10
    EIGEN_CI_CC_COMPILER: gcc-10
  needs: [ "build-tests-g++-10-cxx11-off" ]
  tags:
    - eigen-runner
    - x86
    - linux

########################### Merge request jobs #################################

# GCC 10
run-tests-g++-9-cxx11-on-mr:
  only:
    - merge_requests
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: g++-9
    EIGEN_CI_CC_COMPILER: gcc-9
  dependencies:
    - build-tests-g++-9-cxx11-on-mr

run-tests-g++-9-cxx11-off-mr:
  only:
    - merge_requests
  extends: .run_tests
  variables:
    EIGEN_CI_CXX_COMPILER: g++-9
    EIGEN_CI_CC_COMPILER: gcc-9
  dependencies:
    - build-tests-g++-9-cxx11-off-mr