From 682f37792d830bb3211df40e049e992db26e4ec0 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 17 Feb 2017 19:44:22 +0100 Subject: [PATCH] Move Travis targets to Makefile This allows for calling them easily locally. --- .travis.yml | 11 ++--------- Makefile | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 Makefile 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