diff options
| author | William Boman <william@redwill.se> | 2022-07-21 14:15:11 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-07-22 03:03:23 +0200 |
| commit | 1d459b6d19118b9944d5313e4439cb361d607366 (patch) | |
| tree | d48a07eaa5fddebc75ade8bb1d3861992e0c11a3 /Makefile | |
| download | mason-lspconfig-1d459b6d19118b9944d5313e4439cb361d607366.tar mason-lspconfig-1d459b6d19118b9944d5313e4439cb361d607366.tar.gz mason-lspconfig-1d459b6d19118b9944d5313e4439cb361d607366.tar.bz2 mason-lspconfig-1d459b6d19118b9944d5313e4439cb361d607366.tar.lz mason-lspconfig-1d459b6d19118b9944d5313e4439cb361d607366.tar.xz mason-lspconfig-1d459b6d19118b9944d5313e4439cb361d607366.tar.zst mason-lspconfig-1d459b6d19118b9944d5313e4439cb361d607366.zip | |
init
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5c4a527 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +INSTALL_ROOT_DIR:=$(shell pwd)/tests/fixtures/mason +NVIM_HEADLESS:=nvim --headless --noplugin -u tests/minimal_init.vim + +dependencies: + git clone --depth 1 https://github.com/williamboman/mason.nvim dependencies/pack/vendor/start/mason.nvim + git clone --depth 1 https://github.com/nvim-lua/plenary.nvim dependencies/pack/vendor/start/plenary.nvim + git clone --depth 1 https://github.com/neovim/nvim-lspconfig dependencies/pack/vendor/start/nvim-lspconfig + +.PHONY: clean_dependencies +clean_dependencies: + rm -rf dependencies + +.PHONY: clean_fixtures +clean_fixtures: + rm -rf "${INSTALL_ROOT_DIR}" + +.PHONY: clean +clean: clean_fixtures clean_dependencies + +.PHONY: test +test: clean_fixtures dependencies + INSTALL_ROOT_DIR=${INSTALL_ROOT_DIR} $(NVIM_HEADLESS) -c "call RunTests()" + +.PHONY: generate +generate: dependencies + ./scripts/nvim.sh scripts/lua/mason-scripts/mason-lspconfig/generate.lua + +# vim:noexpandtab |
