-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 713 Bytes
/
Makefile
File metadata and controls
30 lines (25 loc) · 713 Bytes
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
29
30
TAG := latest
help:
@echo Available targets:
@echo
@grep '^\S\+:' Makefile \
| grep -v .PHONY | \
awk -F: '{ print $$1 }'
venv:
(python3 -m venv venv \
&& source venv/bin/activate \
&& pip3 install -U pip \
&& pip3 install -r requirements.txt)
build-image:
docker build --no-cache -t vegadns/cli:${TAG} .
# Only check code we've written
check:
pycodestyle vdns vegadns_cli vegadns_client integration_tests
clean: clean-python
rm -rf venv
clean-python:
find vegadns_client vegadns_cli -name "*.pyc" -exec rm -f {} \;
test-integration:
nosetests integration_tests
upgrade-pip-packages: venv
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U