79a1ea26d6
The tests are still py2; they'll need an update to zaza at some point. Change-Id: I2c4b1ba0212f96cf4a725c80d87b8b2bfed2186f
29 lines
627 B
Makefile
29 lines
627 B
Makefile
#!/usr/bin/make
|
|
PYTHON := /usr/bin/env python3
|
|
CHARM_DIR := $(PWD)
|
|
HOOKS_DIR := $(PWD)/hooks
|
|
TEST_PREFIX := PYTHONPATH=$(HOOKS_DIR)
|
|
|
|
clean:
|
|
rm -f .coverage .testrepository
|
|
find . -name '*.pyc' -delete
|
|
|
|
lint:
|
|
@tox -e pep8
|
|
|
|
bin/charm_helpers_sync.py:
|
|
@mkdir -p bin
|
|
@curl -o bin/charm_helpers_sync.py https://raw.githubusercontent.com/juju/charm-helpers/master/tools/charm_helpers_sync/charm_helpers_sync.py
|
|
|
|
|
|
sync: bin/charm_helpers_sync.py
|
|
@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-hooks.yaml
|
|
|
|
test:
|
|
@echo Starting unit tests...
|
|
@tox -e py36
|
|
|
|
functional_test:
|
|
@echo Starting amulet tests...
|
|
@tox -e func27
|