-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.43 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
30
31
32
33
34
language: bash
env:
- KAFKA_VERSION=0.8.1
- KAFKA_VERSION=0.8.1.1
before_install:
# This deals with https://github.com/travis-ci/travis-ci/issues/3250
- sudo apt-get remove -qq libzmq3
- sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3-source.list
- sudo apt-get update -qq
# Install and start kafka and zookeeper
- curl https://archive.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_2.8.0-${KAFKA_VERSION}.tgz | tar xvz
- cd kafka_2.8.0-${KAFKA_VERSION}
- bin/zookeeper-server-start.sh config/zookeeper.properties >/dev/null 2>&1 &
- bin/kafka-server-start.sh config/server.properties >/dev/null 2>&1 &
- cd -
install:
# Install what is necessary to build (fpm + python)
- sudo apt-get install -qq gcc
build-essential
python-virtualenv
ruby-dev
rubygems
gdebi-core
- rvmsudo gem install fpm
# Build and install
- sh pkgbuild.sh
- sudo gdebi -n flasfka-*.deb
# Start an nginx instance with the recommended config
- sudo apt-get install -qq nginx
- sudo cp /usr/share/doc/flasfka-*/nginx.conf.sample /etc/nginx/nginx.conf
- sudo service nginx restart
script:
- curl -s -X POST --data-binary '{"messages":["hello world!"]}' http://127.0.0.1/flasfka/v1/my-topic/
- curl -s http://127.0.0.1/flasfka/v1/my-topic/