fix(neovim) (#3595)

* fix(neovim)

closes #3594

* wip

* wip

* wip

* wip
This commit is contained in:
Jacob Heider 2023-10-09 21:24:50 -04:00 committed by GitHub
parent 6b3e059562
commit 18b2254ecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,20 +18,33 @@ build:
gnu.org/libtool: ^2 gnu.org/libtool: ^2
git-scm.org: ^2 git-scm.org: ^2
info-zip.org/unzip: '*' info-zip.org/unzip: '*'
script: script:
make - run: |
sed -i.bak \
-e "1i\
set(RT_LIBDIR \"$RT_LIBDIR\")" \
-e 's/\(build busted [0-9]\+\.[0-9]\+\.[0-9]\+\)/\1 RT_LIBDIR=${RT_LIBDIR}/' \
BuildLuarocks.cmake
rm BuildLuarocks.cmake.bak
working-directory: cmake.deps/cmake
if: linux
- make
CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_BUILD_TYPE=RelWithDebInfo
CMAKE_INSTALL_PREFIX="{{prefix}}" CMAKE_INSTALL_PREFIX="{{prefix}}"
install install
env:
linux/aarch64:
RT_LIBDIR: /usr/lib/aarch64-linux-gnu
linux/x86-64:
RT_LIBDIR: /usr/lib/x86_64-linux-gnu
test: test:
script: script:
echo "$FIXTURE vim!!" > fixture - echo "$FIXTURE vim\!\!" > fixture
nvim --headless -i NONE -u NONE '+s/vim/neovim/g' +wq fixture - nvim --headless -i NONE -u NONE '+s/vim/neovim/g' +wq fixture
test "Hello World from neovim!!" = "$(cat fixture) neovim!!" - test "Hello World from neovim\!\!" = "$(cat fixture)"
env: env:
FIXTURE: "Hello World from " FIXTURE: 'Hello World from '
provides: provides:
- bin/nvim - bin/nvim