diff options
author | Brad King <brad.king@kitware.com> | 2021-03-15 17:37:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-17 15:41:26 (GMT) |
commit | c07683331052bf5bd29788a73563930dd5ff2349 (patch) | |
tree | e6f4b4b180dafbddf1a9bfaf59ef7ac193b49a56 /.gitlab/ci | |
parent | 5ea928d9d25cfd2bfea946bdd7c3ad3c92a63168 (diff) | |
download | CMake-c07683331052bf5bd29788a73563930dd5ff2349.zip CMake-c07683331052bf5bd29788a73563930dd5ff2349.tar.gz CMake-c07683331052bf5bd29788a73563930dd5ff2349.tar.bz2 |
gitlab-ci: add jobs testing Intel Classic compilers on Linux
Diffstat (limited to '.gitlab/ci')
-rw-r--r-- | .gitlab/ci/configure_intelclassic_makefiles.cmake | 1 | ||||
-rw-r--r-- | .gitlab/ci/env_intelclassic_common.sh | 9 | ||||
-rw-r--r-- | .gitlab/ci/env_intelclassic_makefiles.sh | 1 | ||||
-rw-r--r-- | .gitlab/ci/env_intelcompiler_license.sh | 8 |
4 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_intelclassic_makefiles.cmake b/.gitlab/ci/configure_intelclassic_makefiles.cmake new file mode 100644 index 0000000..20863a2 --- /dev/null +++ b/.gitlab/ci/configure_intelclassic_makefiles.cmake @@ -0,0 +1 @@ +include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake") diff --git a/.gitlab/ci/env_intelclassic_common.sh b/.gitlab/ci/env_intelclassic_common.sh new file mode 100644 index 0000000..22b1d03 --- /dev/null +++ b/.gitlab/ci/env_intelclassic_common.sh @@ -0,0 +1,9 @@ +source .gitlab/ci/env_intelcompiler_license.sh + +if test -r /opt/intel/oneapi/setvars.sh; then + source /opt/intel/oneapi/setvars.sh +elif test -r /opt/intel/bin/compilervars.sh; then + source /opt/intel/bin/compilervars.sh intel64 +fi + +export CC=icc CXX=icpc FC=ifort diff --git a/.gitlab/ci/env_intelclassic_makefiles.sh b/.gitlab/ci/env_intelclassic_makefiles.sh new file mode 100644 index 0000000..d1ff85e --- /dev/null +++ b/.gitlab/ci/env_intelclassic_makefiles.sh @@ -0,0 +1 @@ +source .gitlab/ci/env_intelclassic_common.sh diff --git a/.gitlab/ci/env_intelcompiler_license.sh b/.gitlab/ci/env_intelcompiler_license.sh new file mode 100644 index 0000000..54743b2 --- /dev/null +++ b/.gitlab/ci/env_intelcompiler_license.sh @@ -0,0 +1,8 @@ +if test -n "$CMAKE_CI_INTELCOMPILER_LICENSE"; then + if test -d /opt/intel/licenses; then + mv "$CMAKE_CI_INTELCOMPILER_LICENSE" /opt/intel/licenses/ci.lic + else + rm "$CMAKE_CI_INTELCOMPILER_LICENSE" + fi + unset CMAKE_CI_INTELCOMPILER_LICENSE +fi |