~juju-deployers/juju-deployer/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SERIES := $(shell lsb_release -r | cut -f 2)

ifeq ($(SERIES), 14.04)
	# the version of tox that ships with trusty doesn't
	# have the skip_missing_interpreters flag, so we need
	# to specify exactly which versions of python to test with
	toxcmd = tox -e py27,py34,pep8
else
	toxcmd = tox
endif

deps:
	@./suggest_install_deps.sh

test-deps: deps
	@./suggest_install_test_deps.sh


test:
	# launchpad build farm target
	TEST_OFFLINE=1 JUJU_HOME=/tmp nosetests -s --verbosity=2 --with-coverage --cover-package=deployer deployer/tests
	flake8 deployer

local_test:
	# local test target
	$(toxcmd)

.PHONY: deps test-deps test local_test