forked from lazypower/DNS-Charm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 778 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make
PYTHON := /usr/bin/env python
sync-charm-helpers: bin/charm_helpers_sync.py
@mkdir -p bin
@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers.yaml
bin/charm_helpers_sync.py:
@bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py > bin/charm_helpers_sync.py
test: clean
@echo "Starting tests..."
@nosetests tests --with-coverage --cover-package=lib
test_contrib: clean
@echo "Testing Contributed Modules"
@nosetests contrib/tests --with-coverage --cover-package=contrib
lint: clean
@find $(sources) -type f \( -iname '*.py' ! -iwholename './lib/*' \) -print0 | xargs -r0 flake8
clean:
@find . -name \*.pyc -delete
@find . -name '*.bak' -delete
@rm -f .coverage
setup:
@pip install -q -r requirements.txt --upgrade --user