forked from confluentinc/librdkafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.52 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
35
36
37
38
39
40
41
42
43
44
45
language: c
cache: ccache
env:
- ARCH=x64
compiler:
- gcc
- clang
os:
- linux
- osx
dist: trusty
sudo: false
addons:
apt:
packages:
- liblz4-dev
before_script:
- ccache -s || echo "CCache is not available."
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; brew install lz4 ; fi
script:
- rm -rf artifacts dest
- mkdir dest artifacts
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then CPPFLAGS="-I/usr/local/opt/openssl/include
-L/usr/local/opt/openssl/lib" STATIC_LIB_lz4=/usr/local/lib/liblz4.a ./configure --enable-static --prefix="$PWD/dest" ; else ./configure --enable-static --prefix="$PWD/dest" ; fi
- make -j2 all examples check && make -C tests run_local
- make install
- (cd dest && tar cvzf ../artifacts/librdkafka-X.tar.gz .)
deploy:
provider: s3
access_key_id:
secure: "i7IAO5z6xYeVaOnFiJOz0wluH7CfGf39TiABQG/yQIIp53fRu+X94FBUS7xq2PziKV08ak8pNWWjenwRB/viPTGqFQDS/ypymhSGGQVTmhgG372ypODhqbnvzskMNe1wp+UFIl8LFVEaHMVPEwWVuYpXhWNMHGrr4uSQhF+5r0Y="
secret_access_key:
secure: q7rWZkwQqyIFu3i32y/rJsKF1AJpwIqQe3AhBFEqjCz80mdEYysvcHBfl956EAAr4qbR3umIKbkhRwbBVyDGlMaraZiR7YFgAO+v0DRFeMiF5XFE3KHNIpCQHSKnzOiL65TpJHZIoB+6w0lAbBVzj87MBN0axAeArHKiO1y8Eec=
bucket: librdkafka-ci-packages
region: us-west-1
skip_cleanup: true
local-dir: artifacts
upload-dir: travis-${TRAVIS_OS_NAME}-${ARCH}-tag_${TRAVIS_TAG}-${TRAVIS_COMMIT}-${TRAVIS_BUILD_ID}
on:
condition: $CC = gcc
#condition: $TRAVIS_PULL_REQUEST = false
repo: edenhill/librdkafka
all_branches: true
#tags: true ## for tag builds only
##