241e63b2d1fd3f5185ed605beaf98f5bbd8a7912
[osm/riftware.git] /
1 #!/usr/bin/make
2 PYTHON := /usr/bin/env python
3
4 all: lint test build
5
6
7 build: unit_test
8         juju-compose -o ~/charms .
9
10 lint:
11         @flake8 --exclude hooks/charmhelpers hooks unit_tests tests
12         @charm proof
13
14 unit_test:
15         @echo Starting tests...
16         tox
17
18 test:
19         @echo Starting Amulet tests...
20         # coreycb note: The -v should only be temporary until Amulet sends
21         # raise_status() messages to stderr:
22         #   https://bugs.launchpad.net/amulet/+bug/1320357
23         @juju test -v -p AMULET_HTTP_PROXY,AMULET_OS_VIP --timeout 2700