-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.39 KB
/
Makefile
File metadata and controls
41 lines (32 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.PHONY: codestyle-python-flake8 codestyle-vimscript-vint unittests unittests-vim unittests-vim-vim unittests-vim-nvim unittests-python env
dev-env:
@python3 -m pip install -r dev-requirements.txt
codestyle: codestyle-vimscript-vint codestyle-python-flake8
codestyle-vimscript-vint:
@command -v vint >/dev/null 2>&1 || { echo "vint not available; install it (pip install vim-vint)."; exit 1; }
vint plugin
codestyle-python-flake8:
@python3 -m flake8 python tests/python tests/fixtures
unittests: unittests-vim unittests-python
unittests-vim: unittests-vim-nvim unittests-vim-vim
unittests-vim-vim:
@echo
@echo --
@echo Starting Vim unittest...
@command -v vim >/dev/null 2>&1 || { echo "vim not available on PATH."; exit 1; }
@rm -f vim-test.log
@vim -E -u NONE -i NONE -V1vim-test.log -c "source tests/vim/run_tests.vim" -c "qa" || { cat vim-test.log; exit 1; }
@rm -f vim-test.log
unittests-vim-nvim:
@echo
@echo --
@echo Starting NVim unittest...
@command -v nvim >/dev/null 2>&1 || { echo "nvim not available on PATH."; exit 1; }
@rm -f nvim-test.log
@nvim --headless -u NONE -i NONE -V1nvim-test.log -c "source tests/vim/run_tests.vim" -c "qa" || { cat nvim-test.log; exit 1; }
@rm -f nvim-test.log
unittests-python:
@echo --
@echo Starting Python unittest...
@command -v pytest >/dev/null 2>&1 || { echo "pytest not available; install it in your virtualenv."; exit 1; }
@pytest tests/python