Browse Source

Merge topic 'macos-pin-xcode-versions'

35b29d3568 ci: disable java detection
72a7697901 gitlab-ci: pin macOS to a specific Xcode version

Acked-by: Kitware Robot <[email protected]>
Merge-request: !4812
Brad King 5 years ago
parent
commit
04b9b2b5f3

+ 3 - 0
.gitlab-ci.yml

@@ -73,6 +73,9 @@
         # Even if we could, it could change if other runners on the machine
         # could run at the same time, so we drop it.
         GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
+        # TODO: Factor this out so that each job selects the Xcode version to
+        # use so that different versions can be tested in a single pipeline.
+        DEVELOPER_DIR: "/Applications/Xcode-11.3.app/Contents/Developer"
 
 .macos_ninja: &macos_ninja
     extends: .macos

+ 9 - 0
.gitlab/ci/configure_macos_common.cmake

@@ -0,0 +1,9 @@
+# Our CI machines do not consistently have Java installed, so a build may
+# detect that Java is available and working, but a test machine then not have a
+# working Java installed. To work around this, just act as if Java is not
+# available on any CI machine.
+set(Java_JAVA_EXECUTABLE "" CACHE FILEPATH "")
+set(Java_JAVAC_EXECUTABLE "" CACHE FILEPATH "")
+set(Java_JAR_EXECUTABLE "" CACHE FILEPATH "")
+
+include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake")

+ 1 - 1
.gitlab/ci/configure_macos_makefiles.cmake

@@ -1 +1 @@
-include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake")

+ 1 - 1
.gitlab/ci/configure_macos_ninja.cmake

@@ -1 +1 @@
-include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake")