~danilo/charms/trusty/glance-simplestreams-sync/invert-failure-mode

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Michael McCracken
  • Date: 2014-06-18 18:14:50 UTC
  • mfrom: (44.5.2)
  • Revision ID: git-v1:ebf0a1e026e530a4d75e42cdee5cd45f8c42b94f
Merge pull request #8 from mikemccracken/add-makefile-and-sync

Add makefile and sync

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
        @pyflakes hooks/*.py scripts/*.py
 
6
        @charm proof
 
7
 
 
8
test:
 
9
        @echo Starting tests...
 
10
        @$(PYTHON) /usr/bin/nosetests --nologcapture --with-coverage -v unit_tests
 
11
 
 
12
 
 
13
bin/charm_helpers_sync.py:
 
14
        @mkdir -p bin
 
15
        @bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py \
 
16
                > bin/charm_helpers_sync.py
 
17
 
 
18
sync: bin/charm_helpers_sync.py
 
19
        @$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-sync.yaml
 
20
 
 
21
publish: lint test
 
22
        bzr push lp:charms/glance-simplestreams-sync
 
23
        bzr push lp:charms/trusty/glance-simplestreams-sync