mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
a2d4b862f1
(undocumented) sourcehut feature for conditionally running consequent tasks. ref: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C3cd90a91b7ce113bb3c5f07898c77543%40hacktivista.com%3E https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/item/worker/tasks.go#L196-198
46 lines
818 B
YAML
46 lines
818 B
YAML
image: freebsd/latest
|
|
|
|
packages:
|
|
- cmake
|
|
- gmake
|
|
- ninja
|
|
- libtool
|
|
- automake
|
|
- pkgconf
|
|
- unzip
|
|
- wget
|
|
- gettext
|
|
- python
|
|
- libffi
|
|
- gdb
|
|
|
|
sources:
|
|
- https://github.com/neovim/neovim
|
|
|
|
environment:
|
|
SOURCEHUT: 1
|
|
LANG: en_US.UTF-8
|
|
CMAKE_EXTRA_FLAGS: -DCI_BUILD=ON -DMIN_LOG_LEVEL=3
|
|
|
|
tasks:
|
|
- should-run: |
|
|
if ! git -C neovim diff --name-only HEAD^! | grep -E -v "^(.github|runtime/doc/.*)" >/dev/null; then
|
|
echo "Skipping build because only ignored files were changed"
|
|
complete-build
|
|
fi
|
|
- build-deps: |
|
|
cd neovim
|
|
gmake deps
|
|
- build: |
|
|
cd neovim
|
|
gmake CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}" nvim
|
|
- functionaltest: |
|
|
cd neovim
|
|
gmake functionaltest
|
|
- unittest: |
|
|
cd neovim
|
|
gmake unittest
|
|
- oldtest: |
|
|
cd neovim
|
|
gmake oldtest
|