~patrick-hetu/charms/precise/python-django/pure-python

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
29
30
#!/usr/bin/make
PYTHON := /usr/bin/env python

#test: lint integration-test

sync-charm-helpers: bin/charm_helpers_sync.py
	@mkdir -p bin
	@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers.yaml

bin/charm_helpers_sync.py:
	@bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py > bin/charm_helpers_sync.py

lint:
	@echo "Lint check (flake8)"
	@flake8 -v --ignore E501 --exclude hooks/charmhelpers hooks
	@charm-proof .

verify-juju-test:
	@echo "Checking for ... "
	@echo -n "juju-test: "
	@if [ -z `which juju-test` ]; then \
	    echo -e "\nRun ./dev/ubuntu-deps to get the juju-test command installed"; \
	    exit 1;\
	else \
	    echo "installed"; \
	fi

integration-test:
	juju test --set-e -p SKIP_SLOW_TESTS,DEPLOYER_TARGET,JUJU_HOME,JUJU_ENV -v --timeout 3000s