aboutsummaryrefslogtreecommitdiffhomepage
path: root/ci/test.gitlab-ci.yml
diff options
context:
space:
mode:
authorGravatar David Tellenbach <david.tellenbach@me.com>2020-09-11 18:11:49 +0000
committerGravatar David Tellenbach <david.tellenbach@me.com>2020-09-11 18:11:49 +0000
commitadc861cabd2ea02942a04d01d8588fee400903fc (patch)
tree0ebfe9ed3f3b9d0956eed52a8bfcda268634694d /ci/test.gitlab-ci.yml
parent5328c9be4356cc3d7ab2e359acb1e9ebeeeea631 (diff)
New CI infrastructure, including AArch64 runners
Diffstat (limited to 'ci/test.gitlab-ci.yml')
-rw-r--r--ci/test.gitlab-ci.yml289
1 files changed, 289 insertions, 0 deletions
diff --git a/ci/test.gitlab-ci.yml b/ci/test.gitlab-ci.yml
new file mode 100644
index 000000000..106c6d990
--- /dev/null
+++ b/ci/test.gitlab-ci.yml
@@ -0,0 +1,289 @@
+.test:linux:base:
+ stage: test
+ image: ubuntu:18.04
+ retry: 2
+ 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:
+ - export CXX=${EIGEN_CI_CXX_COMPILER}
+ - export CC=${EIGEN_CI_CC_COMPILER}
+ - cd ${BUILDDIR} && ctest --output-on-failure --no-compress-output
+ --build-no-clean -T test -L ${EIGEN_CI_TEST_LABEL}
+ 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
+ allow_failure: true
+ only:
+ - schedules
+
+##### x86-64 ###################################################################
+# GCC-4.8
+.test:x86-64:linux:gcc-4.8:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-4.8
+ EIGEN_CI_CC_COMPILER: gcc-4.8
+ needs: [ "build:x86-64:linux:gcc-4.8:cxx11-off" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:gcc-4.8:cxx11-off:official:
+ extends: .test:x86-64:linux:gcc-4.8:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:gcc-4.8:cxx11-off:unsupported:
+ extends: .test:x86-64:linux:gcc-4.8:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:x86-64:linux:gcc-4.8:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-4.8
+ EIGEN_CI_CC_COMPILER: gcc-4.8
+ needs: [ "build:x86-64:linux:gcc-4.8:cxx11-on" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:gcc-4.8:cxx11-on:official:
+ extends: .test:x86-64:linux:gcc-4.8:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:gcc-4.8:cxx11-on:unsupported:
+ extends: .test:x86-64:linux:gcc-4.8:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+# GCC-9
+.test:x86-64:linux:gcc-9:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-9
+ EIGEN_CI_CC_COMPILER: gcc-9
+ needs: [ "build:x86-64:linux:gcc-9:cxx11-off" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:gcc-9:cxx11-off:official:
+ extends: .test:x86-64:linux:gcc-9:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:gcc-9:cxx11-off:unsupported:
+ extends: .test:x86-64:linux:gcc-9:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:x86-64:linux:gcc-9:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-9
+ EIGEN_CI_CC_COMPILER: gcc-9
+ needs: [ "build:x86-64:linux:gcc-9:cxx11-on" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:gcc-9:cxx11-on:official:
+ extends: .test:x86-64:linux:gcc-9:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:gcc-9:cxx11-on:unsupported:
+ extends: .test:x86-64:linux:gcc-9:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+# GCC-10
+.test:x86-64:linux:gcc-10:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "build:x86-64:linux:gcc-10:cxx11-off" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:gcc-10:cxx11-off:official:
+ extends: .test:x86-64:linux:gcc-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:gcc-10:cxx11-off:unsupported:
+ extends: .test:x86-64:linux:gcc-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:x86-64:linux:gcc-10:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "build:x86-64:linux:gcc-10:cxx11-on" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:gcc-10:cxx11-on:official:
+ extends: .test:x86-64:linux:gcc-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:gcc-10:cxx11-on:unsupported:
+ extends: .test:x86-64:linux:gcc-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+# Clang 10
+.test:x86-64:linux:clang-10:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "build:x86-64:linux:clang-10:cxx11-off" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:clang-10:cxx11-off:official:
+ extends: .test:x86-64:linux:clang-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:clang-10:cxx11-off:unsupported:
+ extends: .test:x86-64:linux:clang-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:x86-64:linux:clang-10:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "build:x86-64:linux:clang-10:cxx11-on" ]
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+test:x86-64:linux:clang-10:cxx11-on:official:
+ extends: .test:x86-64:linux:clang-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:clang-10:cxx11-on:unsupported:
+ extends: .test:x86-64:linux:clang-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+##### AArch64 ##################################################################
+# GCC-10
+.test:aarch64:linux:gcc-10:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "build:aarch64:linux:gcc-10:cxx11-off" ]
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+test:aarch64:linux:gcc-10:cxx11-off:official:
+ extends: .test:aarch64:linux:gcc-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:aarch64:linux:gcc-10:cxx11-off:unsupported:
+ extends: .test:aarch64:linux:gcc-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:aarch64:linux:gcc-10:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "build:aarch64:linux:gcc-10:cxx11-on" ]
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+test:aarch64:linux:gcc-10:cxx11-on:official:
+ extends: .test:aarch64:linux:gcc-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:aarch64:linux:gcc-10:cxx11-on:unsupported:
+ extends: .test:aarch64:linux:gcc-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+# Clang 10
+.test:aarch64:linux:clang-10:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "build:aarch64:linux:clang-10:cxx11-off" ]
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+test:aarch64:linux:clang-10:cxx11-off:official:
+ extends: .test:aarch64:linux:clang-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:aarch64:linux:clang-10:cxx11-off:unsupported:
+ extends: .test:aarch64:linux:clang-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:aarch64:linux:clang-10:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "build:aarch64:linux:clang-10:cxx11-on" ]
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+test:aarch64:linux:clang-10:cxx11-on:official:
+ extends: .test:aarch64:linux:clang-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:aarch64:linux:clang-10:cxx11-on:unsupported:
+ extends: .test:aarch64:linux:clang-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"