blob: 255da3d5d4ccc76c1fa09c8b93e9cb374f59e919 [file] [log] [blame]
#!/usr/bin/make
all: lint unit_test
.PHONY: clean
clean:
@rm -rf .tox
.PHONY: apt_prereqs
apt_prereqs:
@# Need tox, but don't install the apt version unless we have to (don't want to conflict with pip)
@which tox >/dev/null || (sudo apt-get install -y python-pip && sudo pip install tox)
.PHONY: lint
lint: apt_prereqs
@tox --notest
@PATH=.tox/py34/bin:.tox/py35/bin flake8 $(wildcard hooks reactive lib unit_tests tests)
@which charm > /dev/null || (sudo apt-get install -y charm)
@charm proof
.PHONY: unit_test
unit_test: apt_prereqs
@echo Starting tests...
tox