~andrewjbeach/juju-ci-tools/make-local-patcher

1091.4.1 by James Tunnicliffe
Merged upstream
1
p=test*.py
611.2.4 by Curtis Hovey
Added makefile for testing and lint.
2
test:
1091.4.1 by James Tunnicliffe
Merged upstream
3
	TMPDIR=/tmp python -m unittest discover -vv ./tests -p "$(p)"
611.2.4 by Curtis Hovey
Added makefile for testing and lint.
4
lint:
1102.2.3 by Aaron Bentley
Fix lint.
5
	flake8 $$(find -name '*.py')
1091.4.1 by James Tunnicliffe
Merged upstream
6
cover:
7
	python -m coverage run --source="./" --omit "./tests/*" -m unittest discover -vv ./tests
8
	python -m coverage report
834.2.1 by Curtis Hovey
Add a clean target in the off chance that a module is renamed.
9
clean:
10
	find . -name '*.pyc' -delete
772.1.1 by Aaron Bentley
Update dependency handling.
11
apt-update:
794.1.1 by Curtis Hovey
Always update juju on slaves and master.
12
	sudo apt-get -qq update
774.2.4 by Aaron Bentley
Revert dependency change.
13
juju-ci-tools.common_0.1.0-0_all.deb: apt-update
772.1.1 by Aaron Bentley
Update dependency handling.
14
	sudo apt-get install -y equivs
15
	equivs-build juju-ci-tools-common
774.2.4 by Aaron Bentley
Revert dependency change.
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
772.1.1 by Aaron Bentley
Update dependency handling.
18
	sudo apt-get install -y -f
798.1.1 by John George
Add install of juju-quickstart and juju-deployer. Also pull latest updates into ~/repository.
19
	sudo apt-get install -y juju-local juju juju-quickstart juju-deployer
1006 by Martin Packman
Add python-pip to make install-deps
20
	sudo apt-get install -y python-pip
1003.2.2 by Martin Packman
Add pipdeps tool for installing requirements from s3
21
	./pipdeps.py install
1183.2.2 by Martin Packman
Update assess template and add new-assess makefile target
22
name=NAMEHERE
23
assess_file=assess_$(name).py
24
test_assess_file=tests/test_assess_$(name).py
25
new-assess:
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