diff --git a/.travis.yml b/.travis.yml index 48023f8..8f407fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,16 +10,9 @@ matrix: - env: ENV=test install: - | - if [ "$ENV" = "check" ]; then - pip install vim-vint - else + if [ "$ENV" = "test" ]; then pip install pytest fi script: - vim --version - - | - if [ "$ENV" = "check" ]; then - vint after autoload ftplugin plugin - else - pytest - fi + - make "$ENV" diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..22712ef --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +test: + py.test + +build: + mkdir $@ +build/vint: | build + virtualenv $@ + $@/bin/pip install vim-vint +check: LINT_FILES:=after autoload ftplugin plugin +check: build/vint + build/vint/bin/vint $(LINT_FILES) + +clean: + rm -rf .cache build + +.PHONY: test check clean