Skip to content

Commit 2d36082

Browse files
committed
Add build_intergation job for makefile
1 parent 3728bec commit 2d36082

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
# Some simple testing tasks (sorry, UNIX only).
22

33
FLAGS=
4-
KAFKA_VERSION=0.11.0.0
5-
SCALA_VERSION=2.11
4+
KAFKA_VERSION=0.11.0.1
5+
SCALA_VERSION=2.12
66

77
setup:
88
pip install -r requirements-dev.txt
99
pip install -Ue .
1010

11+
servers/$(KAFKA_VERSION)/kafka-bin:
12+
KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) ./build_integration.sh
13+
14+
build-integration: servers/$(KAFKA_VERSION)/kafka-bin
15+
1116
# Test and produce coverage using tox. This is the same as is run on Travis
12-
test36:
17+
test36: build-integration
1318
KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py36 -- $(FLAGS)
1419

15-
test27:
20+
test27: build-integration
1621
KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py27 -- $(FLAGS)
1722

1823
# Test using py.test directly if you want to use local python. Useful for other
1924
# platforms that require manual installation for C libraries, ie. Windows.
20-
test-local:
25+
test-local: build-integration
2126
py.test --pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF kafka test
2227

23-
cov-local:
28+
cov-local: build-integration
2429
py.test --pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka \
2530
--cov-config=.covrc --cov-report html kafka test
2631
@echo "open file://`pwd`/htmlcov/index.html"

0 commit comments

Comments
 (0)