From fcfd9c38bf976a97399c7441dc4fa712f624fa91 Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Tue, 15 Mar 2016 20:08:35 -0700 Subject: [PATCH] Use tox in Makefile targets Modify the Makefile to point at the appropriate tox targets so that tox and Make output can be equivalent. This involves mapping the lint target to the pep8 target and the test target to the py27 target. Change-Id: Iee67a6bf266c8a7ded52fe1bdfde4ce59e5bea8e --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7ada5682..cfe78e3d 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,11 @@ PYTHON := /usr/bin/env python lint: - @flake8 --exclude hooks/charmhelpers,tests/charmhelpers \ - hooks tests unit_tests - @charm proof + @tox -e pep8 test: - @# Bundletester expects unit tests here. @echo Starting unit tests... - @$(PYTHON) /usr/bin/nosetests -v --nologcapture --with-coverage unit_tests + @tox -e py27 functional_test: @echo Starting Amulet tests...