mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
ci: enable CI_BUILD automatically if environment variable CI is true (#22312)
Having to specify CI_BUILD for every CI job requires boilerplate. More
importantly, it's easy to forget to enable CI_BUILD, as seen by
8a20f9f98a
. It's simpler to remember to
turn CI_BUILD off when a job errors instead of remembering that every
new job should have CI_BUILD on.
This commit is contained in:
@@ -170,7 +170,11 @@ if(HAS_DIAG_COLOR_FLAG)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
option(CI_BUILD "CI, extra flags will be set" OFF)
|
||||
if($ENV{CI})
|
||||
option(CI_BUILD "CI, extra flags will be set" ON)
|
||||
else()
|
||||
option(CI_BUILD "CI, extra flags will be set" OFF)
|
||||
endif()
|
||||
if(CI_BUILD)
|
||||
message(STATUS "CI build enabled")
|
||||
if(MSVC)
|
||||
|
Reference in New Issue
Block a user