Use tox for lint and unit test targets in Makefile

This commit is contained in:
Liam Young 2015-12-04 09:38:45 +00:00
parent 7a15e60dbc
commit e445dfbaf1
1 changed files with 3 additions and 2 deletions

View File

@ -1,15 +1,16 @@
#!/usr/bin/make
PYTHON := /usr/bin/env python
TOX := /usr/bin/env tox
lint:
@flake8 --exclude hooks/charmhelpers,tests/charmhelpers \
hooks unit_tests tests
@charm proof
@$(TOX) -e lint
test:
@# Bundletester expects unit tests here.
@echo Starting tests...
@$(PYTHON) /usr/bin/nosetests -v --nologcapture --with-coverage unit_tests
@$(TOX) -e py27-trusty
functional_test:
@echo Starting Amulet tests...