~openstack-charmers-next/charms/trusty/neutron-api-odl/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Liam Young
  • Date: 2015-06-24 12:22:08 UTC
  • Revision ID: liam.young@canonical.com-20150624122208-u7h333w734rilf5q
First cut

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make
 
2
PYTHON := /usr/bin/env python
 
3
 
 
4
lint:
 
5
        @flake8 --exclude hooks/charmhelpers hooks unit_tests tests
 
6
        @charm proof
 
7
 
 
8
unit_test:
 
9
        @echo Starting tests...
 
10
        @$(PYTHON) /usr/bin/nosetests --nologcapture unit_tests
 
11
 
 
12
bin/charm_helpers_sync.py:
 
13
        @mkdir -p bin
 
14
        @bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py \
 
15
        > bin/charm_helpers_sync.py
 
16
 
 
17
sync: bin/charm_helpers_sync.py
 
18
        @$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-hooks.yaml
 
19
        @$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-tests.yaml
 
20
 
 
21
test:
 
22
        @echo Starting Amulet tests...
 
23
        # coreycb note: The -v should only be temporary until Amulet sends
 
24
        # raise_status() messages to stderr:
 
25
        #   https://bugs.launchpad.net/amulet/+bug/1320357
 
26
        @juju test -v -p AMULET_HTTP_PROXY,AMULET_OS_VIP --timeout 2700