Skip to content

Commit 380529f

Browse files
author
Elias Van Ootegem
committed
Add travis CI to master branch
1 parent 668abb1 commit 380529f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: c
2+
3+
script: ./travis.sh

travis.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
echo "....fetching librdkafka dependency...."
3+
mkdir tmp_build
4+
cd tmp_build
5+
## clone fork, we know this version of librdkafka works
6+
git clone https://github.com/EVODelavega/librdkafka.git
7+
echo ".....done....."
8+
cd librdkafka
9+
echo "....compiling librdkafka...."
10+
./configure && make && sudo install
11+
echo "....done, now cleaning up...."
12+
cd ../../
13+
rm -Rf tmp_build
14+
echo ".... start building extension....."
15+
phpize
16+
./configure --enable-kafka
17+
make
18+
NO_INTERACTION=1 make test

0 commit comments

Comments
 (0)