forked from oleksiyk/kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (25 loc) · 877 Bytes
/
.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
30
language: node_js
node_js:
- "0.10"
- "4.4"
env:
- CXX=g++-4.8
addons:
code_climate:
repo_token: 3ea8622d957330fec45b641e8ed2650f7a83bc905a38d94f3d43738caf8b227a
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- wget http://www.us.apache.org/dist/kafka/0.10.0.0/kafka_2.11-0.10.0.0.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 &"
- sleep 10
- nohup bash -c "cd kafka && bin/kafka-server-start.sh config/server.properties &"
- sleep 10
- kafka/bin/kafka-topics.sh --zookeeper 127.0.0.1:2181 --create --topic kafka-test-topic --partitions 3 --replication-factor 1
after_script:
- npm install codeclimate-test-reporter
- codeclimate-test-reporter < coverage/lcov.info