diff --git a/.travis.yml b/.travis.yml index 066b7d757..a06109263 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,6 @@ python: install: - pip install coveralls script: - coverage run tests/test_*.py + make tests after_success: coveralls diff --git a/Makefile b/Makefile index dd1c70a1c..d5b9dcafe 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean pep8 lint test +.PHONY: clean pep8 lint test coverage clean: rm -fr build @@ -16,6 +16,9 @@ lint: test: @- $(foreach TEST, $(wildcard tests/test_*.py), python $(TEST);) +coverage: + @- $(foreach TEST, $(wildcard tests/test_*.py), coverage run $(TEST);) + help: @echo "Available targets:" @echo "- clean Clean up the source directory"