Move Travis targets to Makefile

This allows for calling them easily locally.
This commit is contained in:
Daniel Hahler
2017-02-17 19:44:22 +01:00
committed by Dave Halter
parent 0844b14866
commit 682f37792d
2 changed files with 18 additions and 9 deletions

View File

@@ -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"

16
Makefile Normal file
View File

@@ -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