blob: 255da3d5d4ccc76c1fa09c8b93e9cb374f59e919 [file] [log] [blame]
Philip Joseph4ab60872016-09-22 16:36:10 +05301#!/usr/bin/make
2
3all: lint unit_test
4
5
6.PHONY: clean
7clean:
8 @rm -rf .tox
9
10.PHONY: apt_prereqs
11apt_prereqs:
12 @# Need tox, but don't install the apt version unless we have to (don't want to conflict with pip)
13 @which tox >/dev/null || (sudo apt-get install -y python-pip && sudo pip install tox)
14
15.PHONY: lint
16lint: apt_prereqs
17 @tox --notest
18 @PATH=.tox/py34/bin:.tox/py35/bin flake8 $(wildcard hooks reactive lib unit_tests tests)
19 @which charm > /dev/null || (sudo apt-get install -y charm)
20 @charm proof
21
22.PHONY: unit_test
23unit_test: apt_prereqs
24 @echo Starting tests...
25 tox