~corey.bryant/charms/trusty/glance/amulet-trusty-kilo-git

29.2.140 by Andres Rodriguez
Add Makefile
1
#!/usr/bin/make
53.1.5 by james.page at ubuntu
resync helpers
2
PYTHON := /usr/bin/env python
29.2.140 by Andres Rodriguez
Add Makefile
3
4
lint:
43.5.16 by James Page
[yolanda] Add postgresql support
5
	@echo "Running flake8 tests: "
94.2.6 by Corey Bryant
Overall refresh to current install from source approach
6
	@flake8 --exclude hooks/charmhelpers actions hooks unit_tests tests
42.1.2 by James Page
Add all target to Makefile, echo annotate lint check
7
	@echo "OK"
43.5.16 by James Page
[yolanda] Add postgresql support
8
	@echo "Running charm proof: "
29.2.191 by James Page
Misc fixes
9
	@charm proof
42.1.2 by James Page
Add all target to Makefile, echo annotate lint check
10
	@echo "OK"
29.2.162 by Andres Rodriguez
Add initial tests and make a few related fixes to the charm
11
52.1.3 by Ryan Beisner
add basic file-backed glance amulet charm tests
12
unit_test:
53.1.5 by james.page at ubuntu
resync helpers
13
	@$(PYTHON) /usr/bin/nosetests --nologcapture --with-coverage unit_tests
14
15
bin/charm_helpers_sync.py:
16
	@mkdir -p bin
17
	@bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py \
18
        > bin/charm_helpers_sync.py
19
20
sync: bin/charm_helpers_sync.py
53.1.19 by james.page at ubuntu
Rebase
21
	@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-hooks.yaml
22
	@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-tests.yaml
52.1.3 by Ryan Beisner
add basic file-backed glance amulet charm tests
23
29.2.162 by Andres Rodriguez
Add initial tests and make a few related fixes to the charm
24
test:
52.1.3 by Ryan Beisner
add basic file-backed glance amulet charm tests
25
	@echo Starting Amulet tests...
26
	# /!\ Note: The -v should only be temporary until Amulet sends
27
	# raise_status() messages to stderr:
28
	#   https://bugs.launchpad.net/amulet/+bug/1320357
107.1.3 by Ryan Beisner
auto Makefile test target (amulet): bump juju test timeout to 2700s (same value as the juju-deployer default). Also remove explicit test names, which will cause all +x files in ./tests to be executed (as bundletester does by default).
29
	@juju test -v -p AMULET_HTTP_PROXY,AMULET_OS_VIP --timeout 2700
42.1.2 by James Page
Add all target to Makefile, echo annotate lint check
30
54 by james.page at ubuntu
[1chb1n,r=james-page,t=james-page] Add amulet tests.
31
publish: lint unit_test
50 by james.page at ubuntu
[niedbalski] Force use of http for key imports
32
	bzr push lp:charms/glance
33
	bzr push lp:charms/trusty/glance
34
54 by james.page at ubuntu
[1chb1n,r=james-page,t=james-page] Add amulet tests.
35
all: unit_test lint