diff options
author | kylo252 <[email protected]> | 2021-09-09 18:53:21 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-09 18:53:21 +0200 |
commit | 38f53bf08c974791f3d51e8a9c7efe9373c8ce3a (patch) | |
tree | 3f2d5ff1f55bc6fbddc0259fc59cf64155c29edf /Makefile | |
parent | ac32f2e64d61291ba4969599827eef515712d5d8 (diff) |
[Feature]: Add some very basic unit-tests (#1369)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..8efa4f4d --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +SHELL := /bin/bash + +install: + @echo Starting LunarVim Installer + bash ./utils/installer/install.sh + +install-neovim-binary: + @echo Installing Neovim from github releases + bash ./utils/installer/install-neovim-from-release + +uninstall: + @echo TODO: this is currently not supported + +lint: lint-lua lint-sh + +lint-lua: + luacheck *.lua lua/* tests/* + +lint-sh: + shfmt -f . | grep -v jdtls | xargs shellcheck + +style: style-lua style-sh + +style-lua: + stylua --config-path .stylua.toml --check . + +style-sh: + shfmt -f . | grep -v jdtls | xargs shfmt -i 2 -ci -l -d + +test: + bash ./utils/bin/test_runner.sh "$(TEST)" + +.PHONY: install install-neovim-binary uninstall lint style test |