Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:22.04

RUN apt update
# install neovim dependencies
RUN apt install -y git ninja-build gettext libtool libtool-bin autoconf \
automake cmake g++ pkg-config unzip curl doxygen

# install neovim
RUN git clone https://github.com/neovim/neovim
RUN cd neovim && make CMAKE_BUILD_TYPE=RelWithDebInfo && make install

# install required plugins
ARG PLUG_DIR="root/.local/share/nvim/site/pack/packer/start"
RUN git clone https://github.com/nvim-lua/plenary.nvim $PLUG_DIR/plenary.nvim
RUN git clone https://github.com/MunifTanjim/nui.nvim $PLUG_DIR/nui.nvim
COPY . $PLUG_DIR/neo-tree.nvim

WORKDIR $PLUG_DIR/neo-tree.nvim
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ test:
nvim --headless --noplugin -u tests/mininit.lua -c "lua require('plenary.test_harness').test_directory('tests/neo-tree/', {minimal_init='tests/mininit.lua',sequential=true})"
@echo ""
@echo "TEST WITH follow_current_file = true"
nvim --headless --noplugin -u tests/init_follow_current_file.lua -c"lua require('plenary.test_harness').test_directory('tests/neo-tree/', {minimal_init='tests/init_follow_current_file.lua',sequential=true})"
nvim --headless --noplugin -u tests/init_follow_current_file.lua -c"lua require('plenary.test_harness').test_directory('tests/neo-tree/', {minimal_init='tests/init_follow_current_file.lua',sequential=true})"

.PHONY: test-docker
test-docker:
docker build -t neo-tree .
docker run --rm neo-tree make test

.PHONY: format
format:
Expand Down