~arosales/charms/trusty/openstack-dashboard/add-default-fix-lint-nosetests

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Antonio Rosales
  • Date: 2014-09-09 23:45:24 UTC
  • Revision ID: antonio.rosales@canonical.com-20140909234524-or8rk73k3tkudk1c
Add default keys, fix linting error, and nosetests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
PYTHON := /usr/bin/env python
3
3
 
4
4
lint:
5
 
        @flake8 --exclude hooks/charmhelpers hooks unit_tests
 
5
        @flake8 --exclude hooks/charmhelpers hooks
 
6
        @flake8 --exclude hooks/charmhelpers unit_tests
6
7
        @charm proof
7
8
 
8
 
test:
 
9
test: .venv
9
10
        @echo Starting tests...
10
 
        @$(PYTHON) /usr/bin/nosetests --nologcapture unit_tests
 
11
        .venv/bin/nosetests --nologcapture unit_tests
11
12
 
12
13
bin/charm_helpers_sync.py:
13
14
        @mkdir -p bin
18
19
        @$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers.yaml
19
20
 
20
21
publish: lint test
21
 
        bzr push lp:charms/openstack-dashboard
22
 
        bzr push lp:charms/trusty/openstack-dashboard
 
22
        bzr push lp:charms/openstack-dashboard
 
23
        bzr push lp:charms/trusty/openstack-dashboard
 
24
 
 
25
clean:
 
26
        @rm -rf .venv
 
27
 
 
28
.venv:
 
29
        sudo apt-get install python-virtualenv python-apt
 
30
        virtualenv .venv --system-site-packages
 
31
        .venv/bin/pip install nose pyyaml mock -I