File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424parts /
2525share /
2626site-packages /
27+ zookeeper /
2728.coverage
2829.idea
2930.pip_cache
Original file line number Diff line number Diff line change 1+ sudo : false
2+
3+ addons :
4+ apt :
5+ packages :
6+ - libevent-dev
7+
8+ cache :
9+ directories :
10+ - $HOME/.cache/pip
11+ - zookeeper
12+
113language : python
214python :
315 - " 2.7"
@@ -39,9 +51,6 @@ matrix:
3951notifications :
4052 email : false
4153
42- before_install :
43- - sudo apt-get install libevent-dev
44-
4554install :
4655 - pip install tox
4756
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ BIN = $(HERE)/bin
33PYTHON = $(BIN ) /python
44PIP_DOWNLOAD_CACHE ?= $(HERE ) /.pip_cache
55INSTALL = $(BIN ) /pip install
6- INSTALL += --download-cache $(PIP_DOWNLOAD_CACHE )
6+ ifneq ($(TRAVIS ) , true)
7+ INSTALL += --download-cache $(PIP_DOWNLOAD_CACHE )
8+ endif
79TOX_VENV ?= py27
810BUILD_DIRS = bin build include lib lib64 man share
911
Original file line number Diff line number Diff line change 33set -e
44
55HERE=` pwd`
6- ZOO_BASE_DIR=" $HERE /bin/ "
6+ ZOO_BASE_DIR=" $HERE /zookeeper "
77ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION:- 3.4.6}
8- ZOOKEEPER_PATH=" $ZOO_BASE_DIR /zookeeper- $ZOOKEEPER_VERSION "
8+ ZOOKEEPER_PATH=" $ZOO_BASE_DIR /$ZOOKEEPER_VERSION "
99ZOO_MIRROR_URL=" http://apache.osuosl.org/"
1010
1111
1212function download_zookeeper(){
1313 mkdir -p $ZOO_BASE_DIR
1414 cd $ZOO_BASE_DIR
1515 curl --silent -C - $ZOO_MIRROR_URL /zookeeper/zookeeper-$ZOOKEEPER_VERSION /zookeeper-$ZOOKEEPER_VERSION .tar.gz | tar -zx
16+ mv zookeeper-$ZOOKEEPER_VERSION $ZOOKEEPER_VERSION
1617 chmod a+x $ZOOKEEPER_PATH /bin/zkServer.sh
1718}
1819
You can’t perform that action at this time.
0 commit comments