aboutsummaryrefslogtreecommitdiff
path: root/ci/smoketests.gitlab-ci.yml
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2022-02-25 17:02:53 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-02-25 17:02:53 +0000
commitedb0ad5bb04b48aab7dd0978f0475edd3550de7c (patch)
treefb979fb4cf4f8052c8cc66b1ec9516d91fcd859b /ci/smoketests.gitlab-ci.yml
parent8fd413e275f78a4c240f1442ce5cf77c73a20a55 (diff)
parentbc0f5df265caa21a2120c22453655a7fcc941991 (diff)
downloadeigen-a4eb358e057970f2373b88bfb2be3874ea95730d.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/eigen/+/1999079 Change-Id: Ife39d10c8b23d3eeb174cd52f462f9d20527ad03
Diffstat (limited to 'ci/smoketests.gitlab-ci.yml')
-rw-r--r--ci/smoketests.gitlab-ci.yml107
1 files changed, 107 insertions, 0 deletions
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" ]