mirror of
https://github.com/neovim/neovim.git
synced 2026-05-06 08:26:45 -04:00
2015f19f1b
Try this since Cirrus CI ran out of compute credits last month. Previously the tests use less than 1 CPU out of the 2 provided by Cirrus runner. I'm not sure if CPU usage is taken into account when counting compute credits, or if it always fully counts the 2 CPUs. But perhaps this will help in either case?
33 lines
1000 B
YAML
33 lines
1000 B
YAML
env:
|
|
CIRRUS_CLONE_DEPTH: '2'
|
|
LANG: en_US.UTF-8
|
|
|
|
freebsd_task:
|
|
name: FreeBSD
|
|
only_if: $BRANCH != "master"
|
|
freebsd_instance:
|
|
image_family: freebsd-15-0-amd64-ufs
|
|
timeout_in: 30m
|
|
install_script:
|
|
- pkg install -y cmake gmake ninja unzip wget gettext python git
|
|
build_deps_script:
|
|
- gmake deps
|
|
build_script:
|
|
- gmake CMAKE_EXTRA_FLAGS="-DCI_BUILD=ON" nvim
|
|
workaround_script:
|
|
# Run tests as user "cirrus" instead of root. This is required for the
|
|
# permission-related tests to work correctly.
|
|
- pw useradd cirrus -m
|
|
- chown -R cirrus:cirrus .
|
|
functionaltest_script:
|
|
- set +e
|
|
# `-k 0` tells ninja to continue running all targets even if some fail.
|
|
- sudo -u cirrus cmake --build build --target functionaltest-parallel -j 2 -- -k 0
|
|
- exit_code="$?"
|
|
- cmake --build build --target functionaltest-summary
|
|
- exit "$exit_code"
|
|
unittest_script:
|
|
- sudo -u cirrus gmake unittest
|
|
oldtest_script:
|
|
- sudo -u cirrus gmake oldtest
|