-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
26 lines (23 loc) · 1.34 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
language: ruby
services:
- docker
rvm:
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
before_install:
- docker run -d --name zookeeper -p 2181:2181 confluent/zookeeper
- while ! nc localhost 2181 </dev/null; do echo "Waiting for zookeeper..."; sleep 1; done
- docker run -d --name kafka -p 9092:9092 --link zookeeper:zookeeper confluent/kafka
- while ! nc localhost 9092 </dev/null; do echo "Waiting for Kafka..."; sleep 1; done
- docker run -d --name schema-registry -p 8081:8081 --link zookeeper:zookeeper --link kafka:kafka confluent/schema-registry
- while ! nc localhost 8081 </dev/null; do echo "Waiting for schema registry..."; sleep 1; done
- docker run -d --name rest-proxy -p 8082:8082 --link zookeeper:zookeeper --link kafka:kafka --link schema-registry:schema-registry confluent/rest-proxy
- while ! nc localhost 8082 </dev/null; do echo "Waiting for rest proxy..."; sleep 1; done
- docker run -d --name nginx -v $(pwd)/test/schema-registry.conf:/etc/nginx/conf.d/default.conf:ro -p 1081:1081 -p 1082:1082 --link schema-registry:schema-registry --link rest-proxy:rest-proxy nginx
- while ! nc localhost 1081 </dev/null; do echo "Waiting for nginx reverse proxy..."; sleep 1; done
- while ! nc localhost 1082 </dev/null; do echo "Waiting for nginx reverse proxy..."; sleep 1; done
- yes | gem update --system --force
- gem install bundler