~brianlbaird/charms/trusty/pcrf/trunk

« back to all changes in this revision

Viewing changes to trusty/pcrf/deps/layer/layer-docker/Makefile

  • Committer: brian baird
  • Date: 2016-08-24 18:05:17 UTC
  • Revision ID: brianlbaird@gmail.com-20160824180517-uyp6100mfwuj6les
dt demo

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make
 
2
 
 
3
all: lint unit_test
 
4
 
 
5
 
 
6
.PHONY: apt_prereqs
 
7
apt_prereqs:
 
8
        @# Need tox, but don't install the apt version unless we have to (don't want to conflict with pip)
 
9
        @which tox >/dev/null || sudo apt-get install -y python-tox
 
10
 
 
11
lint: apt_prereqs
 
12
        @tox --notest
 
13
        @PATH=.tox/py34/bin:.tox/py35/bin flake8 $(wildcard hooks reactive lib unit_tests tests)
 
14
 
 
15
unit_test: apt_prereqs
 
16
        @echo Starting tests...
 
17
        tox