-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
29 lines (25 loc) · 1.21 KB
/
.travis.yml
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
language: node_js
sudo: false
node_js:
- "6"
- "7"
- "8"
cache:
directories:
- "node_modules"
- "kafka"
env:
global:
- ZOOKEEPER_PEERS=localhost:2181
- KAFKA_PEERS=localhost:9092
before_install:
- wget http://www-us.apache.org/dist/kafka/0.11.0.3/kafka_2.11-0.11.0.3.tgz -O kafka.tgz
- mkdir -p kafka && tar xzf kafka.tgz -C kafka --strip-components 1
- nohup bash -c "cd kafka && bin/zookeeper-server-start.sh config/zookeeper.properties &"
- nohup bash -c "cd kafka && bin/kafka-server-start.sh config/server.properties &"
- sleep 7
- kafka/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic topic.test1 --zookeeper localhost:2181
- kafka/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic topic.error --zookeeper localhost:2181
- kafka/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic topic.2 --zookeeper localhost:2181
- kafka/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic topic.3 --zookeeper localhost:2181
- kafka/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic topic.5 --zookeeper localhost:2181 --config max.message.bytes=10485760