forked from Yelp/kafka-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 783 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
29
30
31
32
33
34
35
36
37
38
39
40
ifeq ($(findstring .yelpcorp.com,$(shell hostname -f)), .yelpcorp.com)
export PIP_INDEX_URL ?= https://pypi.yelpcorp.com/simple
else
export PIP_INDEX_URL ?= https://pypi.python.org/simple
endif
PACKAGE_VERSION := $(shell python setup.py --version)
all: test
clean:
rm -rf build dist *.egg-info/ .tox/ virtualenv_run
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
find . -name '*.deb' -delete
find . -name '*.changes' -delete
make -C docs clean
test:
tox -e py{27,36}-unittest
acceptance: acceptance10 acceptance11
acceptance10:
tox -e py{27,36}-kafka10-dockeritest
acceptance11:
tox -e py{27,36}-kafka11-dockeritest
coverage:
tox -e coverage
tag:
git tag v${PACKAGE_VERSION}
docs:
tox -e docs
.PHONY: all clean test coverage tag docs