mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
adapt kafka tests to travis
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -22,7 +22,18 @@ jobs:
|
||||
- npm run test-proxy
|
||||
after_script:
|
||||
- kill $ANYPROXY_PID
|
||||
|
||||
- name: "Tests reportKafka"
|
||||
before_script:
|
||||
- apt-get install tar
|
||||
- apt-get install wget
|
||||
- rm kafka_2.13-2.6.0.tgz*
|
||||
- wget https://mirror.lyrahosting.com/apache/kafka/2.6.0/kafka_2.13-2.6.0.tgz
|
||||
- tar -xzf kafka_2.13-2.6.0.tgz
|
||||
- nohup ./kafka_2.13-2.6.0/bin/zookeeper-server-start.sh ./kafka_2.13-2.6.0/config/zookeeper.properties &
|
||||
- nohup ./kafka_2.13-2.6.0/bin/kafka-server-start.sh ./kafka_2.13-2.6.0/config/server.properties &
|
||||
- nohup ./kafka_2.13-2.6.0/bin/kafka-topics.sh --create --topic bgpalerter --bootstrap-server 0.0.0.0:9092 &
|
||||
script:
|
||||
- npm run test-kafka
|
||||
|
||||
cache:
|
||||
npm: true
|
||||
|
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt-get install tar
|
||||
apt-get install wget
|
||||
rm kafka_2.13-2.6.0.tgz*
|
||||
wget https://mirror.lyrahosting.com/apache/kafka/2.6.0/kafka_2.13-2.6.0.tgz
|
||||
tar -xzf kafka_2.13-2.6.0.tgz
|
||||
|
||||
nohup ./kafka_2.13-2.6.0/bin/zookeeper-server-start.sh ./kafka_2.13-2.6.0/config/zookeeper.properties &
|
||||
nohup ./kafka_2.13-2.6.0/bin/kafka-server-start.sh ./kafka_2.13-2.6.0/config/server.properties &
|
||||
nohup ./kafka_2.13-2.6.0/bin/kafka-topics.sh --create --topic bgpalerter --bootstrap-server 0.0.0.0:9092 &
|
Reference in New Issue
Block a user