aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rw-r--r--ci/CTest2JUnit.xsl120
-rw-r--r--ci/README.md56
-rw-r--r--ci/build.gitlab-ci.yml216
-rw-r--r--ci/smoketests.gitlab-ci.yml107
-rw-r--r--ci/test.gitlab-ci.yml388
5 files changed, 887 insertions, 0 deletions
diff --git a/ci/CTest2JUnit.xsl b/ci/CTest2JUnit.xsl
new file mode 100644
index 000000000..8ba21f4e6
--- /dev/null
+++ b/ci/CTest2JUnit.xsl
@@ -0,0 +1,120 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:output method="xml" indent="yes"/>
+ <xsl:template match="/Site">
+ <xsl:variable name="Name"><xsl:value-of select="@Name"/></xsl:variable>
+ <xsl:variable name="Hostname"><xsl:value-of select="@Hostname"/></xsl:variable>
+ <xsl:variable name="TestCount"><xsl:value-of select="count(//TestList/Test)"/> </xsl:variable>
+ <xsl:variable name="ErrorCount"><xsl:value-of select="count(//TestList/Test[@Status='error'])"/> </xsl:variable>
+ <xsl:variable name="FailureCount"><xsl:value-of select="count(//Testing/Test[@Status='failed'])"/> </xsl:variable>
+ <testsuite name="{$Name}" hostname="{$Hostname}" errors="0" failures="{$FailureCount}" tests="{$TestCount}">
+ <xsl:variable name="BuildName"><xsl:value-of select="@BuildName"/></xsl:variable>
+ <xsl:variable name="BuildStamp"><xsl:value-of select="@BuildStamp"/></xsl:variable>
+ <xsl:variable name="Generator"><xsl:value-of select="@Generator"/></xsl:variable>
+ <xsl:variable name="CompilerName"><xsl:value-of select="@CompilerName"/></xsl:variable>
+ <xsl:variable name="OSName"><xsl:value-of select="@OSName"/></xsl:variable>
+ <xsl:variable name="OSRelease"><xsl:value-of select="@OSRelease"/></xsl:variable>
+ <xsl:variable name="OSVersion"><xsl:value-of select="@OSVersion"/></xsl:variable>
+ <xsl:variable name="OSPlatform"><xsl:value-of select="@OSPlatform"/></xsl:variable>
+ <xsl:variable name="Is64Bits"><xsl:value-of select="@Is64Bits"/></xsl:variable>
+ <xsl:variable name="VendorString"><xsl:value-of select="@VendorString"/></xsl:variable>
+ <xsl:variable name="VendorID"><xsl:value-of select="@VendorID"/></xsl:variable>
+ <xsl:variable name="FamilyID"><xsl:value-of select="@FamilyID"/></xsl:variable>
+ <xsl:variable name="ModelID"><xsl:value-of select="@ModelID"/></xsl:variable>
+ <xsl:variable name="ProcessorCacheSize"><xsl:value-of select="@ProcessorCacheSize"/></xsl:variable>
+ <xsl:variable name="NumberOfLogicalCPU"><xsl:value-of select="@NumberOfLogicalCPU"/></xsl:variable>
+ <xsl:variable name="NumberOfPhysicalCPU"><xsl:value-of select="@NumberOfPhysicalCPU"/></xsl:variable>
+ <xsl:variable name="TotalVirtualMemory"><xsl:value-of select="@TotalVirtualMemory"/></xsl:variable>
+ <xsl:variable name="TotalPhysicalMemory"><xsl:value-of select="@TotalPhysicalMemory"/></xsl:variable>
+ <xsl:variable name="LogicalProcessorsPerPhysical"><xsl:value-of select="@LogicalProcessorsPerPhysical"/></xsl:variable>
+ <xsl:variable name="ProcessorClockFrequency"><xsl:value-of select="@ProcessorClockFrequency"/></xsl:variable>
+ <properties>
+ <property name="BuildName" value="{$BuildName}" />
+ <property name="BuildStamp" value="{$BuildStamp}" />
+ <property name="Name" value="{$Name}" />
+ <property name="Generator" value="{$Generator}" />
+ <property name="CompilerName" value="{$CompilerName}" />
+ <property name="OSName" value="{$OSName}" />
+ <property name="Hostname" value="{$Hostname}" />
+ <property name="OSRelease" value="{$OSRelease}" />
+ <property name="OSVersion" value="{$OSVersion}" />
+ <property name="OSPlatform" value="{$OSPlatform}" />
+ <property name="Is64Bits" value="{$Is64Bits}" />
+ <property name="VendorString" value="{$VendorString}" />
+ <property name="VendorID" value="{$VendorID}" />
+ <property name="FamilyID" value="{$FamilyID}" />
+ <property name="ModelID" value="{$ModelID}" />
+ <property name="ProcessorCacheSize" value="{$ProcessorCacheSize}" />
+ <property name="NumberOfLogicalCPU" value="{$NumberOfLogicalCPU}" />
+ <property name="NumberOfPhysicalCPU" value="{$NumberOfPhysicalCPU}" />
+ <property name="TotalVirtualMemory" value="{$TotalVirtualMemory}" />
+ <property name="TotalPhysicalMemory" value="{$TotalPhysicalMemory}" />
+ <property name="LogicalProcessorsPerPhysical" value="{$LogicalProcessorsPerPhysical}" />
+ <property name="ProcessorClockFrequency" value="{$ProcessorClockFrequency}" />
+ </properties>
+ <xsl:apply-templates select="Testing/Test"/>
+
+ <system-out>
+ BuildName: <xsl:value-of select="$BuildName" />
+ BuildStamp: <xsl:value-of select="$BuildStamp" />
+ Name: <xsl:value-of select="$Name" />
+ Generator: <xsl:value-of select="$Generator" />
+ CompilerName: <xsl:value-of select="$CompilerName" />
+ OSName: <xsl:value-of select="$OSName" />
+ Hostname: <xsl:value-of select="$Hostname" />
+ OSRelease: <xsl:value-of select="$OSRelease" />
+ OSVersion: <xsl:value-of select="$OSVersion" />
+ OSPlatform: <xsl:value-of select="$OSPlatform" />
+ Is64Bits: <xsl:value-of select="$Is64Bits" />
+ VendorString: <xsl:value-of select="$VendorString" />
+ VendorID: <xsl:value-of select="$VendorID" />
+ FamilyID: <xsl:value-of select="$FamilyID" />
+ ModelID: <xsl:value-of select="$ModelID" />
+ ProcessorCacheSize: <xsl:value-of select="$ProcessorCacheSize" />
+ NumberOfLogicalCPU: <xsl:value-of select="$NumberOfLogicalCPU" />
+ NumberOfPhysicalCPU: <xsl:value-of select="$NumberOfPhysicalCPU" />
+ TotalVirtualMemory: <xsl:value-of select="$TotalVirtualMemory" />
+ TotalPhysicalMemory: <xsl:value-of select="$TotalPhysicalMemory" />
+ LogicalProcessorsPerPhysical: <xsl:value-of select="$LogicalProcessorsPerPhysical" />
+ ProcessorClockFrequency: <xsl:value-of select="$ProcessorClockFrequency" />
+ </system-out>
+ </testsuite>
+ </xsl:template>
+
+ <xsl:template match="Testing/Test">
+ <xsl:variable name="testcasename"><xsl:value-of select= "Name"/></xsl:variable>
+ <xsl:variable name="testclassname"><xsl:value-of select= " concat('this', substring(Path,2))"/></xsl:variable>
+ <xsl:variable name="exectime">
+ <xsl:for-each select="Results/NamedMeasurement">
+ <xsl:if test="@name = 'Execution Time'">
+ <xsl:value-of select="."/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:variable>
+
+ <testcase name="{$testcasename}" classname="{$testclassname}" time="{$exectime}">
+ <xsl:if test="@Status = 'passed'">
+ </xsl:if>
+ <xsl:if test="@Status = 'failed'">
+ <xsl:variable name="failtype">
+ <xsl:for-each select="Results/NamedMeasurement">
+ <xsl:if test="@name = 'Exit Code'">
+ <xsl:value-of select="."/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:variable>
+ <xsl:variable name="failcode">
+ <xsl:for-each select="Results/NamedMeasurement">
+ <xsl:if test="@name = 'Exit Value'">
+ <xsl:value-of select="."/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:variable>
+ <failure message="{$failtype} ({$failcode})"><xsl:value-of select="Results/Measurement/Value/text()" /></failure>
+ </xsl:if>
+ <xsl:if test="@Status = 'notrun'">
+ <skipped><xsl:value-of select="Results/Measurement/Value/text()" /></skipped>
+ </xsl:if>
+ </testcase>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/ci/README.md b/ci/README.md
new file mode 100644
index 000000000..8395b1601
--- /dev/null
+++ b/ci/README.md
@@ -0,0 +1,56 @@
+## Eigen CI infrastructure
+
+Eigen's CI infrastructure uses two stages: A `build` stage to build the unit-test
+suite and a `test` stage to run the unit-tests.
+
+### Build Stage
+
+The build stage consists of the following jobs:
+
+| Job Name | Arch | OS | Compiler | C++11 |
+|------------------------------------------|-----------|----------------|------------|---------|
+| `build:x86-64:linux:gcc-4.8:cxx11-off` | `x86-64` | `Ubuntu 18.04` | `GCC-4.8` | `Off` |
+| `build:x86-64:linux:gcc-4.8:cxx11-on` | `x86-64` | `Ubuntu 18.04` | `GCC-4.8` | `On` |
+| `build:x86-64:linux:gcc-9:cxx11-off` | `x86-64` | `Ubuntu 18.04` | `GCC-9` | `Off` |
+| `build:x86-64:linux:gcc-9:cxx11-on` | `x86-64` | `Ubuntu 18.04` | `GCC-9` | `On` |
+| `build:x86-64:linux:gcc-10:cxx11-off` | `x86-64` | `Ubuntu 18.04` | `GCC-10` | `Off` |
+| `build:x86-64:linux:gcc-10:cxx11-on` | `x86-64` | `Ubuntu 18.04` | `GCC-10` | `On` |
+| `build:x86-64:linux:clang-10:cxx11-off` | `x86-64` | `Ubuntu 18.04` | `Clang-10` | `Off` |
+| `build:x86-64:linux:clang-10:cxx11-on` | `x86-64` | `Ubuntu 18.04` | `Clang-10` | `On` |
+| `build:aarch64:linux:gcc-10:cxx11-off` | `AArch64` | `Ubuntu 18.04` | `GCC-10` | `Off` |
+| `build:aarch64:linux:gcc-10:cxx11-on` | `AArch64` | `Ubuntu 18.04` | `GCC-10` | `On` |
+| `build:aarch64:linux:clang-10:cxx11-off` | `AArch64` | `Ubuntu 18.04` | `Clang-10` | `Off` |
+| `build:aarch64:linux:clang-10:cxx11-on` | `AArch64` | `Ubuntu 18.04` | `Clang-10` | `On` |
+
+### Test stage
+
+In principle every build-job has a corresponding test-job, however testing supported and unsupported modules is divided into separate jobs. The test jobs in detail:
+
+### Job dependecies
+
+| Job Name | Arch | OS | Compiler | C++11 | Module
+|-----------------------------------------------------|-----------|----------------|------------|---------|--------
+| `test:x86-64:linux:gcc-4.8:cxx11-off:official` | `x86-64` | `Ubuntu 18.04` | `GCC-4.8` | `Off` | `Official`
+| `test:x86-64:linux:gcc-4.8:cxx11-off:unsupported` | `x86-64` | `Ubuntu 18.04` | `GCC-4.8` | `Off` | `Unsupported`
+| `test:x86-64:linux:gcc-4.8:cxx11-on:official` | `x86-64` | `Ubuntu 18.04` | `GCC-4.8` | `On` | `Official`
+| `test:x86-64:linux:gcc-4.8:cxx11-on:unsupported` | `x86-64` | `Ubuntu 18.04` | `GCC-4.8` | `On` | `Unsupported`
+| `test:x86-64:linux:gcc-9:cxx11-off:official` | `x86-64` | `Ubuntu 18.04` | `GCC-9` | `Off` | `Official`
+| `test:x86-64:linux:gcc-9:cxx11-off:unsupported` | `x86-64` | `Ubuntu 18.04` | `GCC-9` | `Off` | `Unsupported`
+| `test:x86-64:linux:gcc-9:cxx11-on:official` | `x86-64` | `Ubuntu 18.04` | `GCC-9` | `On` | `Official`
+| `test:x86-64:linux:gcc-9:cxx11-on:unsupported` | `x86-64` | `Ubuntu 18.04` | `GCC-9` | `On` | `Unsupported`
+| `test:x86-64:linux:gcc-10:cxx11-off:official` | `x86-64` | `Ubuntu 18.04` | `GCC-10` | `Off` | `Official`
+| `test:x86-64:linux:gcc-10:cxx11-off:unsupported` | `x86-64` | `Ubuntu 18.04` | `GCC-10` | `Off` | `Unsupported`
+| `test:x86-64:linux:gcc-10:cxx11-on:official` | `x86-64` | `Ubuntu 18.04` | `GCC-10` | `On` | `Official`
+| `test:x86-64:linux:gcc-10:cxx11-on:unsupported` | `x86-64` | `Ubuntu 18.04` | `GCC-10` | `On` | `Unsupported`
+| `test:x86-64:linux:clang-10:cxx11-off:official` | `x86-64` | `Ubuntu 18.04` | `Clang-10` | `Off` | `Official`
+| `test:x86-64:linux:clang-10:cxx11-off:unsupported` | `x86-64` | `Ubuntu 18.04` | `Clang-10` | `Off` | `Unsupported`
+| `test:x86-64:linux:clang-10:cxx11-on:official` | `x86-64` | `Ubuntu 18.04` | `Clang-10` | `On` | `Official`
+| `test:x86-64:linux:clang-10:cxx11-on:unsupported` | `x86-64` | `Ubuntu 18.04` | `Clang-10` | `On` | `Unsupported`
+| `test:aarch64:linux:gcc-10:cxx11-off:official` | `AArch64` | `Ubuntu 18.04` | `GCC-10` | `Off` | `Official`
+| `test:aarch64:linux:gcc-10:cxx11-off:unsupported` | `AArch64` | `Ubuntu 18.04` | `GCC-10` | `Off` | `Unsupported`
+| `test:aarch64:linux:gcc-10:cxx11-on:official` | `AArch64` | `Ubuntu 18.04` | `GCC-10` | `On` | `Official`
+| `test:aarch64:linux:gcc-10:cxx11-on:unsupported` | `AArch64` | `Ubuntu 18.04` | `GCC-10` | `On` | `Unsupported`
+| `test:aarch64:linux:clang-10:cxx11-off:official` | `AArch64` | `Ubuntu 18.04` | `Clang-10` | `Off` | `Official`
+| `test:aarch64:linux:clang-10:cxx11-off:unsupported` | `AArch64` | `Ubuntu 18.04` | `Clang-10` | `Off` | `Unsupported`
+| `test:aarch64:linux:clang-10:cxx11-on:official` | `AArch64` | `Ubuntu 18.04` | `Clang-10` | `On` | `Official`
+| `test:aarch64:linux:clang-10:cxx11-on:unsupported` | `AArch64` | `Ubuntu 18.04` | `Clang-10` | `On` | `Unsupported`
diff --git a/ci/build.gitlab-ci.yml b/ci/build.gitlab-ci.yml
new file mode 100644
index 000000000..6b9f415cc
--- /dev/null
+++ b/ci/build.gitlab-ci.yml
@@ -0,0 +1,216 @@
+.build:linux:base:
+ stage: build
+ 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
+ script:
+ - mkdir -p ${BUILDDIR} && cd ${BUILDDIR}
+ - CXX=${EIGEN_CI_CXX_COMPILER} CC=${EIGEN_CI_CC_COMPILER} cmake -G
+ ${EIGEN_CI_CMAKE_GENEATOR} -DEIGEN_TEST_CXX11=${EIGEN_TEST_CXX11}
+ ${EIGEN_CI_ADDITIONAL_ARGS} ..
+ - cmake --build . --target buildtests
+ artifacts:
+ name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
+ paths:
+ - ${BUILDDIR}/
+ expire_in: 5 days
+ only:
+ - schedules
+
+######## x86-64 ################################################################
+# GCC-4.8 (the oldest compiler we support)
+build:x86-64:linux:gcc-4.8:cxx11-off:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-4.8"
+ EIGEN_CI_CC_COMPILER: "gcc-4.8"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+build:x86-64:linux:gcc-4.8:cxx11-on:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-4.8"
+ EIGEN_CI_CC_COMPILER: "gcc-4.8"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+# GCC-9
+build:x86-64:linux:gcc-9:cxx11-off:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-9"
+ EIGEN_CI_CC_COMPILER: "gcc-9"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+build:x86-64:linux:gcc-9:cxx11-on:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-9"
+ EIGEN_CI_CC_COMPILER: "gcc-9"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+# GCC-10
+build:x86-64:linux:gcc-10:cxx11-off:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+build:x86-64:linux:gcc-10:cxx11-on:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+# Clang-10
+build:x86-64:linux:clang-10:cxx11-off:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+build:x86-64:linux:clang-10:cxx11-on:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - x86-64
+
+######## AArch64 ###############################################################
+# GCC-10
+build:aarch64:linux:gcc-10:cxx11-off:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+build:aarch64:linux:gcc-10:cxx11-on:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+# Clang-10
+build:aarch64:linux:clang-10:cxx11-off:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+build:aarch64:linux:clang-10:cxx11-on:
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - aarch64
+
+######## ppc64le ###############################################################
+# Currently all ppc64le jobs are allowed to fail
+
+# GCC-10
+build:ppc64le:linux:gcc-10:cxx11-off:
+ allow_failure: true
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
+
+build:ppc64le:linux:gcc-10:cxx11-on:
+ allow_failure: true
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
+
+# # Clang-10
+build:ppc64le:linux:clang-10:cxx11-off:
+ allow_failure: true
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "off"
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
+
+build:ppc64le:linux:clang-10:cxx11-on:
+ allow_failure: true
+ extends: .build:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "on"
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
diff --git a/ci/smoketests.gitlab-ci.yml b/ci/smoketests.gitlab-ci.yml
new file mode 100644
index 000000000..6384f1076
--- /dev/null
+++ b/ci/smoketests.gitlab-ci.yml
@@ -0,0 +1,107 @@
+.buildsmoketests:linux:base:
+ stage: buildsmoketests
+ 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
+ script:
+ - mkdir -p ${BUILDDIR} && cd ${BUILDDIR}
+ - CXX=${EIGEN_CI_CXX_COMPILER} CC=${EIGEN_CI_CC_COMPILER} cmake -G
+ ${EIGEN_CI_CMAKE_GENEATOR} -DEIGEN_TEST_CXX11=${EIGEN_TEST_CXX11}
+ ${EIGEN_CI_ADDITIONAL_ARGS} ..
+ - cmake --build . --target buildsmoketests
+ artifacts:
+ name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
+ paths:
+ - ${BUILDDIR}/
+ expire_in: 5 days
+ only:
+ - merge_requests
+
+buildsmoketests:x86-64:linux:gcc-10:cxx11-off:
+ extends: .buildsmoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "off"
+
+buildsmoketests:x86-64:linux:gcc-10:cxx11-on:
+ extends: .buildsmoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "g++-10"
+ EIGEN_CI_CC_COMPILER: "gcc-10"
+ EIGEN_TEST_CXX11: "on"
+
+buildsmoketests:x86-64:linux:clang-10:cxx11-off:
+ extends: .buildsmoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "off"
+
+buildsmoketests:x86-64:linux:clang-10:cxx11-on:
+ extends: .buildsmoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: "clang++-10"
+ EIGEN_CI_CC_COMPILER: "clang-10"
+ EIGEN_TEST_CXX11: "on"
+
+.smoketests:linux:base:
+ stage: smoketests
+ 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:
+ - 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 smoketest
+ 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
+ only:
+ - merge_requests
+
+smoketests:x86-64:linux:gcc-10:cxx11-off:
+ extends: .smoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "buildsmoketests:x86-64:linux:gcc-10:cxx11-off" ]
+
+smoketests:x86-64:linux:gcc-10:cxx11-on:
+ extends: .smoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "buildsmoketests:x86-64:linux:gcc-10:cxx11-on" ]
+
+smoketests:x86-64:linux:clang-10:cxx11-off:
+ extends: .smoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "buildsmoketests:x86-64:linux:clang-10:cxx11-off" ]
+
+smoketests:x86-64:linux:clang-10:cxx11-on:
+ extends: .smoketests:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "buildsmoketests:x86-64:linux:clang-10:cxx11-on" ]
diff --git a/ci/test.gitlab-ci.yml b/ci/test.gitlab-ci.yml
new file mode 100644
index 000000000..2a0f5dd17
--- /dev/null
+++ b/ci/test.gitlab-ci.yml
@@ -0,0 +1,388 @@
+.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
+ 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
+ allow_failure: true
+ 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
+ allow_failure: true
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:x86-64:linux:gcc-10:cxx11-on:unsupported:
+ extends: .test:x86-64:linux:gcc-10:cxx11-on
+ allow_failure: true
+ 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
+ allow_failure: true
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:aarch64:linux:gcc-10:cxx11-off:unsupported:
+ extends: .test:aarch64:linux:gcc-10:cxx11-off
+ allow_failure: true
+ 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
+ allow_failure: true
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:aarch64:linux:gcc-10:cxx11-on:unsupported:
+ extends: .test:aarch64:linux:gcc-10:cxx11-on
+ allow_failure: true
+ 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
+ allow_failure: true
+ 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
+ allow_failure: true
+ 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"
+
+##### ppc64le ##################################################################
+# GCC-10
+.test:ppc64le:linux:gcc-10:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "build:ppc64le:linux:gcc-10:cxx11-off" ]
+ allow_failure: true
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
+
+test:ppc64le:linux:gcc-10:cxx11-off:official:
+ extends: .test:ppc64le:linux:gcc-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:ppc64le:linux:gcc-10:cxx11-off:unsupported:
+ extends: .test:ppc64le:linux:gcc-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:ppc64le:linux:gcc-10:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: g++-10
+ EIGEN_CI_CC_COMPILER: gcc-10
+ needs: [ "build:ppc64le:linux:gcc-10:cxx11-on" ]
+ allow_failure: true
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
+
+test:ppc64le:linux:gcc-10:cxx11-on:official:
+ extends: .test:ppc64le:linux:gcc-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:ppc64le:linux:gcc-10:cxx11-on:unsupported:
+ extends: .test:ppc64le:linux:gcc-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+# # Clang 10
+.test:ppc64le:linux:clang-10:cxx11-off:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "build:ppc64le:linux:clang-10:cxx11-off" ]
+ allow_failure: true
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
+
+test:ppc64le:linux:clang-10:cxx11-off:official:
+ extends: .test:ppc64le:linux:clang-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:ppc64le:linux:clang-10:cxx11-off:unsupported:
+ extends: .test:ppc64le:linux:clang-10:cxx11-off
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"
+
+.test:ppc64le:linux:clang-10:cxx11-on:
+ extends: .test:linux:base
+ variables:
+ EIGEN_CI_CXX_COMPILER: clang++-10
+ EIGEN_CI_CC_COMPILER: clang-10
+ needs: [ "build:ppc64le:linux:clang-10:cxx11-on" ]
+ allow_failure: true
+ tags:
+ - eigen-runner
+ - linux
+ - ppc64le
+
+test:ppc64le:linux:clang-10:cxx11-on:official:
+ extends: .test:ppc64le:linux:clang-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Official"
+
+test:ppc64le:linux:clang-10:cxx11-on:unsupported:
+ extends: .test:ppc64le:linux:clang-10:cxx11-on
+ variables:
+ EIGEN_CI_TEST_LABEL: "Unsupported"