From 1ea25b4034b32d44141b15a52834edaa1c8cca42 Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Tue, 15 Mar 2016 20:08:51 -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: I652b17bd25ff663da2d4740cb94f0ab1a84a9849 --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index aecf043..d3e33e5 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,11 @@ PYTHON := /usr/bin/env python lint: - @flake8 --exclude hooks/charmhelpers,tests/charmhelpers \ - actions hooks unit_tests tests - @charm proof + @tox -e pep8 test: - @# Bundletester expects unit tests here. - @$(PYTHON) /usr/bin/nosetests -v --nologcapture --with-coverage unit_tests + @echo Starting unit tests... + @tox -e py27 functional_test: @echo Starting all functional, lint and unit tests...