mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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.
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user