~aisrael/charm-tools/lp1305337

« back to all changes in this revision

Viewing changes to charmtools/templates/ansible/files/Makefile

  • Committer: Tim Van Steenburgh
  • Date: 2014-09-26 15:09:14 UTC
  • mfrom: (337.2.3 1.3)
  • Revision ID: tim.van.steenburgh@canonical.com-20140926150914-6iulcky6yl6i4l2d
Add ansible charm-create template; remove symlinked hook option

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make
 
2
 
 
3
build: virtualenv lint test
 
4
 
 
5
virtualenv: .venv/bin/python
 
6
.venv/bin/python:
 
7
        sudo apt-get install python-virtualenv
 
8
        virtualenv .venv
 
9
        .venv/bin/pip install nose flake8 mock pyyaml
 
10
 
 
11
lint:
 
12
        @.venv/bin/flake8 hooks unit_tests
 
13
        @charm proof
 
14
 
 
15
test:
 
16
        @echo Starting tests...
 
17
        @CHARM_DIR=. PYTHONPATH=./hooks .venv/bin/nosetests --nologcapture unit_tests
 
18
 
 
19
sync-charm-helpers:
 
20
        @.venv/bin/python scripts/charm_helpers_sync.py -c charm-helpers.yaml
 
21
 
 
22
clean:
 
23
        rm -rf .venv
 
24
        find -name *.pyc -delete