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:
dundargoc
2023-02-18 17:43:39 +01:00
committed by GitHub
parent 6ed5a9ab8c
commit 9301abdf74
7 changed files with 18 additions and 13 deletions

View File

@ -1,7 +1,6 @@
env:
CIRRUS_CLONE_DEPTH: '2'
LANG: en_US.UTF-8
CMAKE_EXTRA_FLAGS: -DCI_BUILD=ON
freebsd_task:
name: FreeBSD
@ -15,7 +14,7 @@ freebsd_task:
build_deps_script:
- gmake deps
build_script:
- gmake CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}" nvim
- gmake nvim
workaround_script:
# Run tests as user "cirrus" instead of root. This is required for the
# permission-related tests to work correctly.