~abentley/charms/trusty/apache2/apache2-ports

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Matt Bruzek
  • Date: 2014-10-31 18:05:47 UTC
  • mfrom: (56.1.2 apache2)
  • Revision ID: matthew.bruzek@canonical.com-20141031180547-xi6n15vx60nrfxg1
[kwmonroe] Use python venv, fix lint errors, add simple deployment bundle test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        @(charm proof $(PWD) || [ $$? -eq 100 ]) && echo OK
18
18
        @test `cat revision` = 0 && rm revision
19
19
 
20
 
test:
 
20
.venv:
 
21
        sudo apt-get install -y python-apt python-virtualenv python-jinja2
 
22
        virtualenv .venv --system-site-packages
 
23
        .venv/bin/pip install -I nose testtools mock pyyaml
 
24
 
 
25
test: .venv
21
26
        @echo Starting tests...
22
 
        @CHARM_DIR=$(CHARM_DIR) $(TEST_PREFIX) nosetests $(TEST_DIR)
 
27
        @CHARM_DIR=$(CHARM_DIR) $(TEST_PREFIX) .venv/bin/nosetests $(TEST_DIR)
23
28
 
24
29
lint:
25
30
        @echo Checking for Python syntax...
36
41
                -d hooks/charmhelpers
37
42
        @echo Do not forget to commit the updated files if any.
38
43
 
39
 
.PHONY: revision proof test lint sourcedeps charm-payload
 
44
.PHONY: revision proof .venv test lint sourcedeps charm-payload