~andreserl/pyjuju/cloud-init-orchestra-lp850260

88.2.2 by Benjamin Saller
wip
1
PEP8=pep8
2
COVERAGE_FILES=`find ensemble -name "*py" | grep -v "tests\|lib/mocker.py\|lib/testing.py"`
3
142 by Gustavo Niemeyer
Prevent "make" from breaking. [trivial]
4
all:
5
	@echo "You've just watched the fastest build on earth."
88.2.2 by Benjamin Saller
wip
6
7
html:
8
	make -C docs html
9
	#@gnome-open docs/build/html/index.html
81 by kapil.thangavelu at canonical
clean up coverage file inclusion (thanks ben) [trivial]
10
12.1.3 by kapil.thangavelu at canonical
fix tests from sample/dummy formula movement
11
tests:
12
	./test
13
6.1.3 by kapil.thangavelu at canonical
add private key arg handling, functional tests for secure zoo connections, return the tunnel so it can be managed properly from connect api
14
coverage:
142.1.1 by Gustavo Niemeyer
Tweak 'make coverage' so it works with the python-coverage package too.
15
	python -c "import coverage as c; c.main()" run ./test
16
	python -c "import coverage as c; c.main()" html -d htmlcov $(COVERAGE_FILES)
6.1.3 by kapil.thangavelu at canonical
add private key arg handling, functional tests for secure zoo connections, return the tunnel so it can be managed properly from connect api
17
	gnome-open htmlcov/index.html
18
6.1.2 by kapil.thangavelu at canonical
makefile front end to normal and functional tests, additional connect test
19
ftests:
18.3.2 by Gustavo Niemeyer
Got started with FormulaStateManager and FormulaState. It's able
20
	./test --functional
21
22
tags:
88.2.2 by Benjamin Saller
wip
23
	@ctags --python-kinds=-iv -R ensemble
18.3.3 by Gustavo Niemeyer
Implemented FormulaBase which implements some logic for handling
24
46.1.2 by kapil.thangavelu at canonical
serialiation test, emacs tag gen for makefile
25
etags:
88.2.2 by Benjamin Saller
wip
26
	@ctags -e --python-kinds=-iv -R ensemble
27
28
modified=$(shell bzr status -S  |grep -P '^\s*M' | awk '{print $$2;}'| grep -P ".py$$")
29
check:
30
	@test -n "$(modified)" && echo $(modified) | xargs $(PEP8) --repeat
31
	@test -n "$(modified)" && echo $(modified) | xargs pyflakes
32
33
306.5.9 by kapil.thangavelu at canonical
parameterize trunk in ENSEMBLE_TRUNK env variable for makefile
34
modified=$(shell bzr status -S -r ancestor:$(ENSEMBLE_TRUNK) |grep -P '^\s*M' | awk '{print $$2;}'| grep -P ".py$$")
88.2.2 by Benjamin Saller
wip
35
review:
36
	@test -n "$(modified)" && echo $(modified) | xargs $(PEP8) --repeat
37
	@test -n "$(modified)" && echo $(modified) | xargs pyflakes
38
39
174.11.5 by Benjamin Saller
Better ptests in Makefile, sensitive to new files properly
40
modified=$(shell bzr status -S -r branch::prev  |grep -P '^\s*\+?[MN]' | awk '{print $$2;}'| grep -P "test_.*\.py$$")
174.6.19 by Benjamin Saller
trival change to makefile allowing for simple testing of changes in a pipeline
41
ptests:
42
	@test -n "$(modified)" && echo $(modified) | xargs ./test
43
306.5.9 by kapil.thangavelu at canonical
parameterize trunk in ENSEMBLE_TRUNK env variable for makefile
44
modified=$(shell  bzr status -S -r ancestor:$(ENSEMBLE_TRUNK)/|grep -P 'test.*\.py' |awk '{print $$2;}')
174.12.4 by Benjamin Saller
adding service to missing hookcontext init and various pep8 cleanups
45
btests:
46
	@./test $(modified)
47
88.2.2 by Benjamin Saller
wip
48
.PHONY: tags check review