diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-10-17 17:16:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 17:16:31 +0200 |
commit | 5046b4b4adb154bbdb50a5e96e29f777b5f807ac (patch) | |
tree | 113ec908fdb52141f5f8adf272f8019715206b56 /cmake | |
parent | b9632e58e3efa1635acac56cf136595c0b8bcc42 (diff) | |
download | rneovim-5046b4b4adb154bbdb50a5e96e29f777b5f807ac.tar.gz rneovim-5046b4b4adb154bbdb50a5e96e29f777b5f807ac.tar.bz2 rneovim-5046b4b4adb154bbdb50a5e96e29f777b5f807ac.zip |
ci: add cirrus to isCI function to skip tests (#20526)
The environment variable CIRRUS_CI is manually passed to RunTests.cmake
as it doesn't get passed when using cmake script mode.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/RunTests.cmake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index 2abe29b54b..c3ac5f208e 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -3,8 +3,8 @@ set(ENV{LC_ALL} "en_US.UTF-8") if(POLICY CMP0012) # Avoid policy warning due to CI=true. This is needed even if the main - # project has already set this policy as policy settings are reset when using - # the cmake script mode (-P). + # project has already set this policy as project settings aren't inherited + # when using cmake script mode (-P). cmake_policy(SET CMP0012 NEW) endif() @@ -15,6 +15,12 @@ set(ENV{XDG_DATA_HOME} ${BUILD_DIR}/Xtest_xdg/share) unset(ENV{XDG_DATA_DIRS}) unset(ENV{NVIM}) # Clear $NVIM in case tests are running from Nvim. #11009 +# TODO(dundargoc): The CIRRUS_CI environment variable isn't passed to here from +# the main CMakeLists.txt, so we have to manually pass it to this script and +# re-set the environment variable. Investigate if we can avoid manually setting +# it like with the GITHUB_CI environment variable. +set(ENV{CIRRUS_CI} ${CIRRUS_CI}) + if(NOT DEFINED ENV{NVIM_LOG_FILE}) set(ENV{NVIM_LOG_FILE} ${BUILD_DIR}/.nvimlog) endif() |