ci: SourceHut: revisit OpenBSD/FreeBSD config

This commit is contained in:
Daniel Hahler
2019-11-29 10:31:31 +01:00
parent fe927b84de
commit cd6f755cf7
2 changed files with 21 additions and 15 deletions

View File

@@ -29,12 +29,16 @@ tasks:
- build: | - build: |
cd neovim cd neovim
gmake CMAKE_BUILD_TYPE=Release CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}" nvim gmake CMAKE_BUILD_TYPE=Release CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}" nvim
- test: | - functionaltest: |
cd neovim cd neovim
gmake unittest functionaltest gmake functionaltest
- unittest: |
cd neovim
gmake unittest
# Unfortunately, oldtest is tanking hard on sourcehut's FreeBSD instance # Unfortunately, oldtest is tanking hard on sourcehut's FreeBSD instance
# and not producing any logs as a result. So don't do this task for now. # and not producing any logs as a result. So don't do this task for now.
# Ref: https://github.com/neovim/neovim/pull/11477#discussion_r352095005.
# - test-oldtest: | # - test-oldtest: |
# cd neovim # cd neovim
# gmake oldtest # gmake oldtest

View File

@@ -16,26 +16,28 @@ packages:
sources: sources:
- https://github.com/neovim/neovim - https://github.com/neovim/neovim
environment:
SOURCEHUT: 1
LC_CTYPE: en_US.UTF-8
CMAKE_EXTRA_FLAGS: -DTRAVIS_CI_BUILD=ON -DMIN_LOG_LEVEL=3
tasks: tasks:
- build: | - build-deps: |
export AUTOCONF_VERSION=2.69 export AUTOCONF_VERSION=2.69
export AUTOMAKE_VERSION=1.15 export AUTOMAKE_VERSION=1.15
cd neovim mkdir neovim/.deps
mkdir .deps cd neovim/.deps
cd .deps
cmake -G Ninja ../third-party/ cmake -G Ninja ../third-party/
cmake --build . --config Debug cmake --build . --config Debug
cd .. - build: |
mkdir build mkdir neovim/build
cd build cd neovim/build
cmake -G Ninja -DMIN_LOG_LEVEL=3 .. cmake -G Ninja $CMAKE_EXTRA_FLAGS ..
cmake --build . --config Debug cmake --build . --config Debug
./bin/nvim --version ./bin/nvim --version
- test: | - functionaltest: |
export LC_CTYPE=en_US.UTF-8
# functional tests
cd neovim/build cd neovim/build
cmake --build . --config Debug --target functionaltest cmake --build . --config Debug --target functionaltest
# oldtests - oldtest: |
cd .. cd neovim
gmake oldtest gmake oldtest