3
TMPDIR=/tmp python -m unittest discover -vv ./tests -p "$(p)"
5
flake8 $$(find -name '*.py')
7
python -m coverage run --source="./" --omit "./tests/*" -m unittest discover -vv ./tests
8
python -m coverage report
10
find . -name '*.pyc' -delete
12
sudo apt-get -qq update
13
juju-ci-tools.common_0.1.0-0_all.deb: apt-update
14
sudo apt-get install -y equivs
15
equivs-build juju-ci-tools-common
16
install-deps: juju-ci-tools.common_0.1.0-0_all.deb apt-update
17
sudo dpkg -i juju-ci-tools.common_0.1.0-0_all.deb || true
18
sudo apt-get install -y -f
19
sudo apt-get install -y juju-local juju juju-quickstart juju-deployer
20
sudo apt-get install -y python-pip
23
assess_file=assess_$(name).py
24
test_assess_file=tests/test_assess_$(name).py
26
install -m 755 template_assess.py.tmpl $(assess_file)
27
install -m 644 template_test.py.tmpl $(test_assess_file)
28
sed -i -e "s/TEMPLATE/$(name)/g" $(assess_file) $(test_assess_file)
29
.PHONY: lint test cover clean new-assess apt-update install-deps