summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-05-26 09:19:31 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2020-05-26 12:50:16 -0400
commit9812e87ee44b758f82f4612950ffa03df934e90a (patch)
tree56551bbd097bcc7edeec84a93ed3b2668d554c70 /.gitlab-ci.yml
parente63fe4a58863e4a8fe6cee55e6ffd4324f5e10d4 (diff)
downloadcmake-9812e87ee44b758f82f4612950ffa03df934e90a.tar.gz
gitlab-ci: add a test of the VS generator based off of the ninja build
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d67d55be82..a8b31da840 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -117,6 +117,14 @@
VCVARSALL: "${VS160COMNTOOLS}\\..\\..\\VC\\Auxiliary\\Build\\vcvarsall.bat"
VCVARSPLATFORM: x64
+.windows_vs2019_x64: &windows_vs2019_x64
+ extends: .windows
+
+ variables:
+ CMAKE_CONFIGURATION: windows_vs2019_x64
+ CMAKE_GENERATOR: "Visual Studio 16 2019"
+ CMAKE_GENERATOR_PLATFORM: "x64"
+
.linux_builder_tags: &linux_builder_tags
tags:
- build
@@ -278,9 +286,18 @@
interruptible: true
+.cmake_test_windows_external: &cmake_test_windows_external
+ stage: test-ext
+
+ script:
+ - build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_test_external.cmake
+
+ interruptible: true
+
stages:
- build
- test
+ - test-ext
build:debian10-iwyu:
<<:
@@ -392,8 +409,20 @@ test:windows-vs2019-x64-ninja:
- *windows_vs2019_x64_ninja
- *cmake_test_windows
- *windows_builder_tags
+ - *cmake_test_artifacts
rules: *rules_settings
dependencies:
- build:windows-vs2019-x64-ninja
needs:
- build:windows-vs2019-x64-ninja
+
+test:windows-vs2019-x64:
+ <<:
+ - *windows_vs2019_x64
+ - *cmake_test_windows_external
+ - *windows_builder_tags
+ rules: *rules_settings
+ dependencies:
+ - test:windows-vs2019-x64-ninja
+ needs:
+ - test:windows-vs2019-x64-ninja