test.gitlab-ci.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. .test:linux:base:
  2. stage: test
  3. image: ubuntu:18.04
  4. retry: 2
  5. before_script:
  6. - apt-get update -y
  7. - apt-get install -y --no-install-recommends software-properties-common
  8. - add-apt-repository -y ppa:ubuntu-toolchain-r/test
  9. - apt-get update
  10. - apt-get install --no-install-recommends -y ${EIGEN_CI_CXX_COMPILER}
  11. ${EIGEN_CI_CC_COMPILER} cmake ninja-build xsltproc
  12. script:
  13. - export CXX=${EIGEN_CI_CXX_COMPILER}
  14. - export CC=${EIGEN_CI_CC_COMPILER}
  15. - cd ${BUILDDIR} && ctest --output-on-failure --no-compress-output
  16. --build-no-clean -T test -L ${EIGEN_CI_TEST_LABEL}
  17. after_script:
  18. - apt-get update -y
  19. - apt-get install --no-install-recommends -y xsltproc
  20. - cd ${BUILDDIR}
  21. - xsltproc ../ci/CTest2JUnit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > "JUnitTestResults_$CI_JOB_ID.xml"
  22. artifacts:
  23. reports:
  24. junit:
  25. - ${BUILDDIR}/JUnitTestResults_$CI_JOB_ID.xml
  26. expire_in: 5 days
  27. only:
  28. - schedules
  29. ##### x86-64 ###################################################################
  30. # GCC-4.8
  31. .test:x86-64:linux:gcc-4.8:cxx11-off:
  32. extends: .test:linux:base
  33. variables:
  34. EIGEN_CI_CXX_COMPILER: g++-4.8
  35. EIGEN_CI_CC_COMPILER: gcc-4.8
  36. needs: [ "build:x86-64:linux:gcc-4.8:cxx11-off" ]
  37. tags:
  38. - eigen-runner
  39. - linux
  40. - x86-64
  41. test:x86-64:linux:gcc-4.8:cxx11-off:official:
  42. extends: .test:x86-64:linux:gcc-4.8:cxx11-off
  43. variables:
  44. EIGEN_CI_TEST_LABEL: "Official"
  45. test:x86-64:linux:gcc-4.8:cxx11-off:unsupported:
  46. extends: .test:x86-64:linux:gcc-4.8:cxx11-off
  47. variables:
  48. EIGEN_CI_TEST_LABEL: "Unsupported"
  49. .test:x86-64:linux:gcc-4.8:cxx11-on:
  50. extends: .test:linux:base
  51. variables:
  52. EIGEN_CI_CXX_COMPILER: g++-4.8
  53. EIGEN_CI_CC_COMPILER: gcc-4.8
  54. needs: [ "build:x86-64:linux:gcc-4.8:cxx11-on" ]
  55. tags:
  56. - eigen-runner
  57. - linux
  58. - x86-64
  59. test:x86-64:linux:gcc-4.8:cxx11-on:official:
  60. extends: .test:x86-64:linux:gcc-4.8:cxx11-on
  61. variables:
  62. EIGEN_CI_TEST_LABEL: "Official"
  63. test:x86-64:linux:gcc-4.8:cxx11-on:unsupported:
  64. extends: .test:x86-64:linux:gcc-4.8:cxx11-on
  65. variables:
  66. EIGEN_CI_TEST_LABEL: "Unsupported"
  67. # GCC-9
  68. .test:x86-64:linux:gcc-9:cxx11-off:
  69. extends: .test:linux:base
  70. variables:
  71. EIGEN_CI_CXX_COMPILER: g++-9
  72. EIGEN_CI_CC_COMPILER: gcc-9
  73. needs: [ "build:x86-64:linux:gcc-9:cxx11-off" ]
  74. tags:
  75. - eigen-runner
  76. - linux
  77. - x86-64
  78. test:x86-64:linux:gcc-9:cxx11-off:official:
  79. extends: .test:x86-64:linux:gcc-9:cxx11-off
  80. variables:
  81. EIGEN_CI_TEST_LABEL: "Official"
  82. test:x86-64:linux:gcc-9:cxx11-off:unsupported:
  83. extends: .test:x86-64:linux:gcc-9:cxx11-off
  84. variables:
  85. EIGEN_CI_TEST_LABEL: "Unsupported"
  86. .test:x86-64:linux:gcc-9:cxx11-on:
  87. extends: .test:linux:base
  88. variables:
  89. EIGEN_CI_CXX_COMPILER: g++-9
  90. EIGEN_CI_CC_COMPILER: gcc-9
  91. needs: [ "build:x86-64:linux:gcc-9:cxx11-on" ]
  92. tags:
  93. - eigen-runner
  94. - linux
  95. - x86-64
  96. test:x86-64:linux:gcc-9:cxx11-on:official:
  97. extends: .test:x86-64:linux:gcc-9:cxx11-on
  98. variables:
  99. EIGEN_CI_TEST_LABEL: "Official"
  100. test:x86-64:linux:gcc-9:cxx11-on:unsupported:
  101. extends: .test:x86-64:linux:gcc-9:cxx11-on
  102. variables:
  103. EIGEN_CI_TEST_LABEL: "Unsupported"
  104. # GCC-10
  105. .test:x86-64:linux:gcc-10:cxx11-off:
  106. extends: .test:linux:base
  107. variables:
  108. EIGEN_CI_CXX_COMPILER: g++-10
  109. EIGEN_CI_CC_COMPILER: gcc-10
  110. needs: [ "build:x86-64:linux:gcc-10:cxx11-off" ]
  111. tags:
  112. - eigen-runner
  113. - linux
  114. - x86-64
  115. test:x86-64:linux:gcc-10:cxx11-off:official:
  116. extends: .test:x86-64:linux:gcc-10:cxx11-off
  117. allow_failure: true
  118. variables:
  119. EIGEN_CI_TEST_LABEL: "Official"
  120. test:x86-64:linux:gcc-10:cxx11-off:unsupported:
  121. extends: .test:x86-64:linux:gcc-10:cxx11-off
  122. variables:
  123. EIGEN_CI_TEST_LABEL: "Unsupported"
  124. .test:x86-64:linux:gcc-10:cxx11-on:
  125. extends: .test:linux:base
  126. variables:
  127. EIGEN_CI_CXX_COMPILER: g++-10
  128. EIGEN_CI_CC_COMPILER: gcc-10
  129. needs: [ "build:x86-64:linux:gcc-10:cxx11-on" ]
  130. tags:
  131. - eigen-runner
  132. - linux
  133. - x86-64
  134. test:x86-64:linux:gcc-10:cxx11-on:official:
  135. extends: .test:x86-64:linux:gcc-10:cxx11-on
  136. allow_failure: true
  137. variables:
  138. EIGEN_CI_TEST_LABEL: "Official"
  139. test:x86-64:linux:gcc-10:cxx11-on:unsupported:
  140. extends: .test:x86-64:linux:gcc-10:cxx11-on
  141. allow_failure: true
  142. variables:
  143. EIGEN_CI_TEST_LABEL: "Unsupported"
  144. # Clang 10
  145. .test:x86-64:linux:clang-10:cxx11-off:
  146. extends: .test:linux:base
  147. variables:
  148. EIGEN_CI_CXX_COMPILER: clang++-10
  149. EIGEN_CI_CC_COMPILER: clang-10
  150. needs: [ "build:x86-64:linux:clang-10:cxx11-off" ]
  151. tags:
  152. - eigen-runner
  153. - linux
  154. - x86-64
  155. test:x86-64:linux:clang-10:cxx11-off:official:
  156. extends: .test:x86-64:linux:clang-10:cxx11-off
  157. variables:
  158. EIGEN_CI_TEST_LABEL: "Official"
  159. test:x86-64:linux:clang-10:cxx11-off:unsupported:
  160. extends: .test:x86-64:linux:clang-10:cxx11-off
  161. variables:
  162. EIGEN_CI_TEST_LABEL: "Unsupported"
  163. .test:x86-64:linux:clang-10:cxx11-on:
  164. extends: .test:linux:base
  165. variables:
  166. EIGEN_CI_CXX_COMPILER: clang++-10
  167. EIGEN_CI_CC_COMPILER: clang-10
  168. needs: [ "build:x86-64:linux:clang-10:cxx11-on" ]
  169. tags:
  170. - eigen-runner
  171. - linux
  172. - x86-64
  173. test:x86-64:linux:clang-10:cxx11-on:official:
  174. extends: .test:x86-64:linux:clang-10:cxx11-on
  175. variables:
  176. EIGEN_CI_TEST_LABEL: "Official"
  177. test:x86-64:linux:clang-10:cxx11-on:unsupported:
  178. extends: .test:x86-64:linux:clang-10:cxx11-on
  179. variables:
  180. EIGEN_CI_TEST_LABEL: "Unsupported"
  181. ##### AArch64 ##################################################################
  182. # GCC-10
  183. .test:aarch64:linux:gcc-10:cxx11-off:
  184. extends: .test:linux:base
  185. variables:
  186. EIGEN_CI_CXX_COMPILER: g++-10
  187. EIGEN_CI_CC_COMPILER: gcc-10
  188. needs: [ "build:aarch64:linux:gcc-10:cxx11-off" ]
  189. tags:
  190. - eigen-runner
  191. - linux
  192. - aarch64
  193. test:aarch64:linux:gcc-10:cxx11-off:official:
  194. extends: .test:aarch64:linux:gcc-10:cxx11-off
  195. allow_failure: true
  196. variables:
  197. EIGEN_CI_TEST_LABEL: "Official"
  198. test:aarch64:linux:gcc-10:cxx11-off:unsupported:
  199. extends: .test:aarch64:linux:gcc-10:cxx11-off
  200. allow_failure: true
  201. variables:
  202. EIGEN_CI_TEST_LABEL: "Unsupported"
  203. .test:aarch64:linux:gcc-10:cxx11-on:
  204. extends: .test:linux:base
  205. variables:
  206. EIGEN_CI_CXX_COMPILER: g++-10
  207. EIGEN_CI_CC_COMPILER: gcc-10
  208. needs: [ "build:aarch64:linux:gcc-10:cxx11-on" ]
  209. tags:
  210. - eigen-runner
  211. - linux
  212. - aarch64
  213. test:aarch64:linux:gcc-10:cxx11-on:official:
  214. extends: .test:aarch64:linux:gcc-10:cxx11-on
  215. allow_failure: true
  216. variables:
  217. EIGEN_CI_TEST_LABEL: "Official"
  218. test:aarch64:linux:gcc-10:cxx11-on:unsupported:
  219. extends: .test:aarch64:linux:gcc-10:cxx11-on
  220. allow_failure: true
  221. variables:
  222. EIGEN_CI_TEST_LABEL: "Unsupported"
  223. # Clang 10
  224. .test:aarch64:linux:clang-10:cxx11-off:
  225. extends: .test:linux:base
  226. variables:
  227. EIGEN_CI_CXX_COMPILER: clang++-10
  228. EIGEN_CI_CC_COMPILER: clang-10
  229. needs: [ "build:aarch64:linux:clang-10:cxx11-off" ]
  230. tags:
  231. - eigen-runner
  232. - linux
  233. - aarch64
  234. test:aarch64:linux:clang-10:cxx11-off:official:
  235. extends: .test:aarch64:linux:clang-10:cxx11-off
  236. allow_failure: true
  237. variables:
  238. EIGEN_CI_TEST_LABEL: "Official"
  239. test:aarch64:linux:clang-10:cxx11-off:unsupported:
  240. extends: .test:aarch64:linux:clang-10:cxx11-off
  241. variables:
  242. EIGEN_CI_TEST_LABEL: "Unsupported"
  243. .test:aarch64:linux:clang-10:cxx11-on:
  244. extends: .test:linux:base
  245. variables:
  246. EIGEN_CI_CXX_COMPILER: clang++-10
  247. EIGEN_CI_CC_COMPILER: clang-10
  248. needs: [ "build:aarch64:linux:clang-10:cxx11-on" ]
  249. tags:
  250. - eigen-runner
  251. - linux
  252. - aarch64
  253. test:aarch64:linux:clang-10:cxx11-on:official:
  254. extends: .test:aarch64:linux:clang-10:cxx11-on
  255. allow_failure: true
  256. variables:
  257. EIGEN_CI_TEST_LABEL: "Official"
  258. test:aarch64:linux:clang-10:cxx11-on:unsupported:
  259. extends: .test:aarch64:linux:clang-10:cxx11-on
  260. variables:
  261. EIGEN_CI_TEST_LABEL: "Unsupported"
  262. ##### ppc64le ##################################################################
  263. # GCC-10
  264. .test:ppc64le:linux:gcc-10:cxx11-off:
  265. extends: .test:linux:base
  266. variables:
  267. EIGEN_CI_CXX_COMPILER: g++-10
  268. EIGEN_CI_CC_COMPILER: gcc-10
  269. needs: [ "build:ppc64le:linux:gcc-10:cxx11-off" ]
  270. allow_failure: true
  271. tags:
  272. - eigen-runner
  273. - linux
  274. - ppc64le
  275. test:ppc64le:linux:gcc-10:cxx11-off:official:
  276. extends: .test:ppc64le:linux:gcc-10:cxx11-off
  277. variables:
  278. EIGEN_CI_TEST_LABEL: "Official"
  279. test:ppc64le:linux:gcc-10:cxx11-off:unsupported:
  280. extends: .test:ppc64le:linux:gcc-10:cxx11-off
  281. variables:
  282. EIGEN_CI_TEST_LABEL: "Unsupported"
  283. .test:ppc64le:linux:gcc-10:cxx11-on:
  284. extends: .test:linux:base
  285. variables:
  286. EIGEN_CI_CXX_COMPILER: g++-10
  287. EIGEN_CI_CC_COMPILER: gcc-10
  288. needs: [ "build:ppc64le:linux:gcc-10:cxx11-on" ]
  289. allow_failure: true
  290. tags:
  291. - eigen-runner
  292. - linux
  293. - ppc64le
  294. test:ppc64le:linux:gcc-10:cxx11-on:official:
  295. extends: .test:ppc64le:linux:gcc-10:cxx11-on
  296. variables:
  297. EIGEN_CI_TEST_LABEL: "Official"
  298. test:ppc64le:linux:gcc-10:cxx11-on:unsupported:
  299. extends: .test:ppc64le:linux:gcc-10:cxx11-on
  300. variables:
  301. EIGEN_CI_TEST_LABEL: "Unsupported"
  302. # # Clang 10
  303. .test:ppc64le:linux:clang-10:cxx11-off:
  304. extends: .test:linux:base
  305. variables:
  306. EIGEN_CI_CXX_COMPILER: clang++-10
  307. EIGEN_CI_CC_COMPILER: clang-10
  308. needs: [ "build:ppc64le:linux:clang-10:cxx11-off" ]
  309. allow_failure: true
  310. tags:
  311. - eigen-runner
  312. - linux
  313. - ppc64le
  314. test:ppc64le:linux:clang-10:cxx11-off:official:
  315. extends: .test:ppc64le:linux:clang-10:cxx11-off
  316. variables:
  317. EIGEN_CI_TEST_LABEL: "Official"
  318. test:ppc64le:linux:clang-10:cxx11-off:unsupported:
  319. extends: .test:ppc64le:linux:clang-10:cxx11-off
  320. variables:
  321. EIGEN_CI_TEST_LABEL: "Unsupported"
  322. .test:ppc64le:linux:clang-10:cxx11-on:
  323. extends: .test:linux:base
  324. variables:
  325. EIGEN_CI_CXX_COMPILER: clang++-10
  326. EIGEN_CI_CC_COMPILER: clang-10
  327. needs: [ "build:ppc64le:linux:clang-10:cxx11-on" ]
  328. allow_failure: true
  329. tags:
  330. - eigen-runner
  331. - linux
  332. - ppc64le
  333. test:ppc64le:linux:clang-10:cxx11-on:official:
  334. extends: .test:ppc64le:linux:clang-10:cxx11-on
  335. variables:
  336. EIGEN_CI_TEST_LABEL: "Official"
  337. test:ppc64le:linux:clang-10:cxx11-on:unsupported:
  338. extends: .test:ppc64le:linux:clang-10:cxx11-on
  339. variables:
  340. EIGEN_CI_TEST_LABEL: "Unsupported"