forked from cmccarthy1/kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis_setup.sh
More file actions
26 lines (24 loc) · 890 Bytes
/
Copy pathtravis_setup.sh
File metadata and controls
26 lines (24 loc) · 890 Bytes
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
#!/bin/bash
mkdir cbuild
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew install librdkafka
cp -r /usr/local/opt/librdkafka/lib ./cbuild
cp -r /usr/local/opt/librdkafka/include ./cbuild
elif [ "$TRAVIS_OS_NAME" == "linux" ]; then
git clone https://github.com/edenhill/librdkafka
cd librdkafka
./configure --prefix=../cbuild --disable-sasl --disable-lz4 --disable-ssl --mbits=64
make
sudo make install
cd ..
elif [ "$TRAVIS_OS_NAME" == "windows" ]; then
curl -o ./nuget.exe -L https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
chmod a+x ./nuget.exe
./nuget.exe install librdkafka.redist -version 1.4.4
mkdir cbuild/lib
cp librdkafka.redist.1.4.4/build/native/lib/win/x64/win-x64-Release/v120/* cbuild/lib
mkdir cbuild/include
cp -r librdkafka.redist.1.4.4/build/native/include ./cbuild
else
echo "$TRAVIS_OS_NAME is currently not supported"
fi