mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
ci: Travis: Ubuntu Xenial, and pynvim (#908)
This commit is contained in:
26
Makefile
26
Makefile
@@ -1,3 +1,5 @@
|
||||
BUILD_VIRTUAL_ENV:=build/venv
|
||||
|
||||
test:
|
||||
pytest
|
||||
|
||||
@@ -7,23 +9,23 @@ test_nvim:
|
||||
test_coverage: export PYTEST_ADDOPTS:=--cov pythonx --cov test --cov-report=term-missing:skip-covered
|
||||
test_coverage: test_nvim
|
||||
|
||||
build:
|
||||
mkdir $@
|
||||
$(dir $(BUILD_VIRTUAL_ENV)):
|
||||
mkdir -p $@
|
||||
|
||||
build/venv: | build
|
||||
virtualenv -p python3.6 $@
|
||||
$(BUILD_VIRTUAL_ENV): | $(dir $(BUILD_VIRTUAL_ENV))
|
||||
python -m venv $@
|
||||
|
||||
build/venv/bin/vint: | build/venv
|
||||
$|/bin/pip install -q vim-vint==0.3.19
|
||||
$(BUILD_VIRTUAL_ENV)/bin/vint: | $(BUILD_VIRTUAL_ENV)
|
||||
$|/bin/python -m pip install vim-vint==0.3.19
|
||||
|
||||
build/venv/bin/flake8: | build/venv
|
||||
$|/bin/pip install -q flake8==3.5.0
|
||||
$(BUILD_VIRTUAL_ENV)/bin/flake8: | $(BUILD_VIRTUAL_ENV)
|
||||
$|/bin/python -m pip install -q flake8==3.5.0
|
||||
|
||||
vint: build/venv/bin/vint
|
||||
build/venv/bin/vint after autoload ftplugin plugin
|
||||
vint: $(BUILD_VIRTUAL_ENV)/bin/vint
|
||||
$(BUILD_VIRTUAL_ENV)/bin/vint after autoload ftplugin plugin
|
||||
|
||||
flake8: build/venv/bin/flake8
|
||||
build/venv/bin/flake8 pythonx/jedi_*.py
|
||||
flake8: $(BUILD_VIRTUAL_ENV)/bin/flake8
|
||||
$(BUILD_VIRTUAL_ENV)/bin/flake8 pythonx/jedi_*.py
|
||||
|
||||
check: vint flake8
|
||||
|
||||
|
||||
Reference in New Issue
Block a user