Skip to content

Commit

Permalink
Merge pull request #234 from godkun/patch-1
Browse files Browse the repository at this point in the history
feat: install zookeeper with travis
  • Loading branch information
hufeng committed Apr 10, 2021
2 parents a7713d4 + d8461a3 commit 5796292
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Expand Up @@ -5,6 +5,15 @@ node_js:
- '12'
before_install:
- npm i npminstall -g
# Install zookeeper
- wget https://archive.apache.org/dist/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz
- tar xzf zookeeper-3.4.9.tar.gz
- echo "tickTime=2000" > zookeeper-3.4.9/conf/zoo.cfg
- echo "dataDir=/tmp/zookeeper" >> zookeeper-3.4.9/conf/zoo.cfg
- echo "clientPort=2181" >> zookeeper-3.4.9/conf/zoo.cfg
- mkdir /tmp/zookeeper
- zookeeper-3.4.9/bin/zkServer.sh start
- jps | grep -v Jps
install:
- npminstall
script:
Expand Down

0 comments on commit 5796292

Please sign in to comment.