Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 12b17c1509
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 34 lines (26 sloc) 0.815 kb
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
APPNAME = zktools
HERE = $(shell pwd)
BIN = $(HERE)/bin
NOSE = $(BIN)/nosetests -s --with-xunit
PYTHON = $(BIN)/python
ZOOKEEPER = $(BIN)/zookeeper

.PHONY: zookeeper

$(ZOOKEEPER):
mkdir -p bin
cd bin && \
curl --silent http://mirrors.ibiblio.org/apache//zookeeper/stable/zookeeper-3.3.4.tar.gz | tar -zx
mv bin/zookeeper-3.3.4 bin/zookeeper
cd bin/zookeeper && ant compile
cp zoo.cfg bin/zookeeper/conf/

zookeeper: $(ZOOKEEPER)

all: build

$(BIN)/python:
virtualenv-2.6 --no-site-packages --distribute .

build: $(BIN)/python
$(PYTHON) setup.py develop
$(BIN)/pip install nose
$(BIN)/pip install Mock

test:
$(BIN)/zookeeper/bin/zkServer.sh start $(HERE)/zoo.cfg
$(NOSE) --with-coverage --cover-package=$(APPNAME) --cover-inclusive $(APPNAME)
$(BIN)/zookeeper/bin/zkServer.sh stop $(HERE)/zoo.cfg
Something went wrong with that request. Please try again.