2013-05-20 00:04:40 +04:00
|
|
|
language: c
|
2019-06-19 16:08:47 +03:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
2016-02-03 15:31:27 +03:00
|
|
|
cache: ccache
|
2019-06-28 23:12:26 +03:00
|
|
|
|
2017-02-16 23:20:48 +03:00
|
|
|
env:
|
2019-08-20 15:01:44 +03:00
|
|
|
global:
|
|
|
|
- ARCH=x64
|
2019-06-28 23:12:26 +03:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2020-04-29 10:19:32 +03:00
|
|
|
- python3
|
|
|
|
- python3-pip
|
|
|
|
- python3-setuptools
|
2019-06-28 23:12:26 +03:00
|
|
|
# required by openssl installer
|
|
|
|
- perl
|
|
|
|
|
2020-04-29 09:24:55 +03:00
|
|
|
|
2019-06-19 16:08:47 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-06-29 11:50:18 +03:00
|
|
|
- name: "Linux GCC: +Debian packages +BuiltinRegex"
|
2019-06-19 16:08:47 +03:00
|
|
|
os: linux
|
|
|
|
compiler: gcc
|
2020-04-30 14:45:54 +03:00
|
|
|
env: ADDITIONAL_BUILDS="debian" LINKAGE=std
|
2019-06-19 16:08:47 +03:00
|
|
|
before_script:
|
2020-06-29 11:50:18 +03:00
|
|
|
- ./configure --install-deps --disable-lz4-ext --disable-regex-ext --prefix="$PWD/dest"
|
2020-04-30 14:45:54 +03:00
|
|
|
- name: "RPM packages"
|
|
|
|
os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: ADDITIONAL_BUILDS="centos" SKIP_MAKE=y
|
2019-06-19 16:08:47 +03:00
|
|
|
- name: "Linux clang: +alpine"
|
|
|
|
os: linux
|
|
|
|
compiler: clang
|
2019-06-20 13:06:54 +03:00
|
|
|
env: ADDITIONAL_BUILDS="alpine" LINKAGE=std
|
2019-06-19 16:08:47 +03:00
|
|
|
before_script:
|
2020-04-21 10:01:30 +03:00
|
|
|
- ./configure --install-deps --disable-lz4-ext --prefix="$PWD/dest" --enable-werror
|
2019-06-20 13:06:54 +03:00
|
|
|
- name: "Linux clang: +static +alpine-static"
|
|
|
|
os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: ADDITIONAL_BUILDS="alpine-static" LINKAGE=static
|
|
|
|
before_script:
|
|
|
|
- ./configure --enable-static --install-deps --source-deps-only --disable-gssapi --disable-lz4-ext --prefix="$PWD/dest"
|
2019-06-19 16:08:47 +03:00
|
|
|
- name: "OSX GCC"
|
|
|
|
os: osx
|
|
|
|
compiler: gcc
|
2019-06-20 13:06:54 +03:00
|
|
|
env: LINKAGE=std
|
2019-06-19 16:08:47 +03:00
|
|
|
before_script:
|
2020-04-21 10:01:30 +03:00
|
|
|
- ./configure --install-deps --disable-lz4-ext --prefix="$PWD/dest" --enable-werror
|
2019-06-19 16:08:47 +03:00
|
|
|
- name: "OSX clang: +static"
|
|
|
|
os: osx
|
2020-03-20 17:22:03 +03:00
|
|
|
# Use an older image to disable syslog and for broader compatibility
|
2019-07-03 14:02:31 +03:00
|
|
|
# with old and new osx versions.
|
|
|
|
osx_image: xcode9.2
|
2019-06-19 16:08:47 +03:00
|
|
|
compiler: clang
|
2020-03-20 17:22:03 +03:00
|
|
|
env: LINKAGE=static HOMEBREW_NO_AUTO_UPDATE=1
|
2019-06-19 16:08:47 +03:00
|
|
|
before_script:
|
2019-07-03 14:02:31 +03:00
|
|
|
- ./configure --install-deps --disable-lz4-ext --prefix="$PWD/dest" --enable-static --disable-syslog
|
2020-04-29 09:24:55 +03:00
|
|
|
- name: "Windows MinGW-w64"
|
|
|
|
os: windows
|
|
|
|
env:
|
|
|
|
- SKIP_MAKE=y
|
|
|
|
before_install:
|
|
|
|
- source ./packaging/mingw-w64/travis-before-install.sh
|
|
|
|
before_script:
|
|
|
|
- ./packaging/mingw-w64/configure-build-msys2-mingw.sh
|
2019-09-01 11:00:00 +03:00
|
|
|
- name: "Linux GCC: +integration-tests +copyright-check +doc-check"
|
2019-06-19 16:08:47 +03:00
|
|
|
os: linux
|
2019-07-16 17:22:46 +03:00
|
|
|
dist: xenial
|
2019-06-19 16:08:47 +03:00
|
|
|
compiler: gcc
|
2019-09-01 11:00:00 +03:00
|
|
|
env: NO_ARTIFACTS=y RUN_INTEGRATION_TESTS=y COPYRIGHT_CHECK=y DOC_CHECK=y
|
2019-06-19 16:08:47 +03:00
|
|
|
before_script:
|
2019-07-16 17:22:46 +03:00
|
|
|
- wget -O rapidjson-dev.deb https://launchpad.net/ubuntu/+archive/primary/+files/rapidjson-dev_1.1.0+dfsg2-3_all.deb
|
|
|
|
- sudo dpkg -i rapidjson-dev.deb
|
2020-04-29 10:19:32 +03:00
|
|
|
- sudo pip3 install -r tests/requirements.txt
|
2019-09-01 11:00:00 +03:00
|
|
|
- sudo apt update
|
2020-03-04 10:48:15 +03:00
|
|
|
- sudo apt install -y doxygen graphviz gdb
|
2019-06-19 16:08:47 +03:00
|
|
|
- ./configure --install-deps --disable-lz4-ext --prefix="$PWD/dest"
|
2019-11-05 11:58:54 +03:00
|
|
|
- name: "Linux GCC: +devel +code-cov"
|
|
|
|
os: linux
|
|
|
|
dist: bionic
|
|
|
|
compiler: gcc
|
|
|
|
env: NO_ARTIFACTS=y
|
|
|
|
before_script:
|
2018-06-11 20:11:26 +03:00
|
|
|
- ./configure --enable-devel --disable-lz4-ext --prefix="$PWD/dest"
|
2019-11-05 11:58:54 +03:00
|
|
|
- ./packaging/tools/rdutcoverage.sh
|
2019-06-19 16:08:47 +03:00
|
|
|
|
|
|
|
install:
|
2017-02-21 00:34:50 +03:00
|
|
|
- ccache -s || echo "CCache is not available."
|
2019-06-19 16:08:47 +03:00
|
|
|
- rm -rf artifacts dest
|
|
|
|
- mkdir dest artifacts
|
|
|
|
|
2020-04-29 09:24:55 +03:00
|
|
|
before_cache:
|
|
|
|
- if [[ $TRAVIS_OS_NAME == windows ]]; then $msys2 pacman --sync --clean --noconfirm ; fi
|
|
|
|
|
2019-06-19 16:08:47 +03:00
|
|
|
before_script:
|
2014-03-16 11:53:42 +04:00
|
|
|
script:
|
2020-04-29 09:24:55 +03:00
|
|
|
- if [[ $SKIP_MAKE != y ]]; then make -j2 all examples check && make -j2 -C tests build ; fi
|
|
|
|
- if [[ $SKIP_MAKE != y && $RUN_INTEGRATION_TESTS != y ]]; then make -C tests run_local_quick ; fi
|
|
|
|
- if [[ $SKIP_MAKE != y ]]; then make install ; fi
|
2019-06-19 16:08:47 +03:00
|
|
|
- if [[ -z $NO_ARTIFACTS ]]; then (cd dest && tar cvzf ../artifacts/librdkafka-${CC}.tar.gz .) ; fi
|
|
|
|
- for distro in $ADDITIONAL_BUILDS ; do packaging/tools/distro-build.sh $distro || exit 1 ; done
|
|
|
|
- if [[ $COPYRIGHT_CHECK == y ]]; then make copyright-check ; fi
|
2019-09-01 11:00:00 +03:00
|
|
|
- if [[ $DOC_CHECK == y ]]; then make docs ; fi
|
2020-03-12 12:59:02 +03:00
|
|
|
- if [[ $RUN_INTEGRATION_TESTS == y ]]; then (cd tests && travis_retry ./interactive_broker_version.py -c "make quick" 2.4.0) ; fi
|
2020-03-04 10:48:15 +03:00
|
|
|
- if [[ -f tests/core ]] && (which gdb >/dev/null); then (cd tests && LD_LIBRARY_PATH=../src:../src-cpp gdb ./test-runner core < backtrace.gdb) ; fi
|
2019-06-19 16:08:47 +03:00
|
|
|
|
2017-02-16 23:20:48 +03:00
|
|
|
deploy:
|
|
|
|
provider: s3
|
|
|
|
access_key_id:
|
2018-12-03 23:07:22 +03:00
|
|
|
secure: "m8FQrFesK0xSS1wHo2S7cuWkpO7VB91dBmj1XIYLRXZSkbMpKBJATcFcHNbrAp3slEp7wLAnT7CHrQ4ccQi4H68Z7mjEwdq4VKRE+7zqJ/feK8MOFNeSHWLQzgwLUYlRlc9+tzLNwxMuL2ilWgdjKOArsUVHo9LEKNfQ3T6zCJU="
|
2017-02-16 23:20:48 +03:00
|
|
|
secret_access_key:
|
2018-12-03 23:07:22 +03:00
|
|
|
secure: "GE6O0gk5VRervntCKAmczfBdSOvbr9bouJ15H2rpcOgHi8KTDEjI/NS69eLiRRSHBCARtcRqN4wfgy+/dn7D1VklY8a1rAKu02wGjw+fq7k7GVSSmynR/aF619R4SIABsaAhNCwswXnLHuLlq8HFk5ulG3z8DUvYBczB45bWZfQ="
|
2017-02-16 23:20:48 +03:00
|
|
|
bucket: librdkafka-ci-packages
|
|
|
|
region: us-west-1
|
|
|
|
skip_cleanup: true
|
|
|
|
local-dir: artifacts
|
2019-06-20 13:06:54 +03:00
|
|
|
upload-dir: librdkafka/p-librdkafka__bld-travis__plat-${TRAVIS_OS_NAME}__arch-${ARCH}__tag-${TRAVIS_TAG}__sha-${TRAVIS_COMMIT}__bid-${TRAVIS_JOB_NUMBER}__lnk-${LINKAGE}
|
2017-02-16 23:20:48 +03:00
|
|
|
on:
|
|
|
|
repo: edenhill/librdkafka
|
2017-02-21 02:41:10 +03:00
|
|
|
all_branches: true
|
2017-09-13 12:38:05 +03:00
|
|
|
tags: true
|
2019-06-19 16:08:47 +03:00
|
|
|
on: $NO_ARTIFACTS != y
|