2022-09-08 15:12:42 -07:00
|
|
|
env:
|
2022-09-23 03:57:18 -07:00
|
|
|
CIRRUS_CLONE_DEPTH: '2'
|
2022-09-08 15:12:42 -07:00
|
|
|
LANG: en_US.UTF-8
|
|
|
|
|
|
|
|
freebsd_task:
|
|
|
|
name: FreeBSD
|
|
|
|
only_if: $BRANCH != "master"
|
|
|
|
freebsd_instance:
|
|
|
|
image_family: freebsd-13-1
|
|
|
|
timeout_in: 30m
|
|
|
|
install_script:
|
|
|
|
- pkg update -f
|
2023-02-17 16:09:51 -07:00
|
|
|
- pkg install -y cmake gmake ninja pkgconf unzip wget gettext python libffi git
|
2022-09-08 15:12:42 -07:00
|
|
|
build_deps_script:
|
|
|
|
- gmake deps
|
|
|
|
build_script:
|
2023-04-07 13:31:04 -07:00
|
|
|
- gmake CMAKE_EXTRA_FLAGS="-DCI_BUILD=ON" nvim
|
2022-09-08 15:12:42 -07:00
|
|
|
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:
|
|
|
|
- sudo -u cirrus gmake functionaltest
|
|
|
|
unittest_script:
|
|
|
|
- sudo -u cirrus gmake unittest
|
|
|
|
oldtest_script:
|
|
|
|
- sudo -u cirrus gmake oldtest
|
2023-04-26 14:22:12 -07:00
|
|
|
|
|
|
|
with_external_deps_task:
|
|
|
|
container:
|
|
|
|
dockerfile: ci/Dockerfile.external_deps
|
|
|
|
deps_script:
|
|
|
|
# Ideally all dependencies should external for this job, but some
|
|
|
|
# dependencies don't have the required version available. We use the
|
|
|
|
# bundled versions for these with the hopes of being able to remove them
|
|
|
|
# later on.
|
|
|
|
- cmake -S cmake.deps -B .deps -G Ninja -D USE_BUNDLED=OFF -D USE_BUNDLED_LIBVTERM=ON -D USE_BUNDLED_TS=ON
|
|
|
|
- cmake --build .deps
|
|
|
|
build_script:
|
|
|
|
- cmake --preset ci
|
|
|
|
- cmake --build build
|