1
0
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:
Massimo Candela
2020-11-07 23:28:21 +01:00
parent 6e6d43816e
commit abc0c18960
2 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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 &