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 /test/helpers.lua | |
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 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index a7eda60f87..225a4d35b4 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -790,10 +790,10 @@ end function module.isCI(name) local any = (name == nil) - assert(any or name == 'github') + assert(any or name == 'github' or name == 'cirrus') local gh = ((any or name == 'github') and nil ~= os.getenv('GITHUB_ACTIONS')) - return gh - + local cirrus = ((any or name == 'cirrus') and nil ~= os.getenv('CIRRUS_CI')) + return gh or cirrus end -- Gets the (tail) contents of `logfile`. |