~charmers/charms/trusty/apache2/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Diogo Baeder de Paula Pinto
  • Date: 2013-02-19 14:18:19 UTC
  • mto: (27.2.16 apache2)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: diogobaeder@canonical.com-20130219141819-mak63rvbddn50jqz
Removing Fabric and virtualenv stuff, back to Makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PWD := $(shell pwd)
 
2
HOOKS_DIR := $(PWD)/hooks
 
3
TEST_PREFIX := PYTHONPATH=$(HOOKS_DIR)
 
4
TEST_DIR := $(PWD)/tests
 
5
CHARM_DIR := $(PWD)
 
6
EXCLUDED_LINT_DIRS := $(PWD)/.env/*
 
7
 
 
8
 
 
9
build: test lint
 
10
 
 
11
test:
 
12
        @echo Starting tests...
 
13
        @CHARM_DIR=$(CHARM_DIR) $(TEST_PREFIX) nosetests $(TEST_DIR)
 
14
 
 
15
lint:
 
16
        @echo Checking for Python syntax...
 
17
        @flake8 $(PWD) --ignore=E123 --exclude=$(EXCLUDED_LINT_DIRS)
 
 
b'\\ No newline at end of file'