Skip to content

Commit

Permalink
Move Travis targets to Makefile
Browse files Browse the repository at this point in the history
This allows for calling them easily locally.
  • Loading branch information
blueyed authored and davidhalter committed Feb 22, 2017
1 parent 0844b14 commit 682f377
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 682f377

Please sign in to comment.