Граф коммитов

93 Коммитов

Автор SHA1 Сообщение Дата
Bill Rose c7659b3f2c
Make dynamic MinGW build copy DLLs instead of trying to manipulate PATH (@neptoess, #3787)
* Make dynamic MinGW build copy DLLs instead of trying to manipulate PATH

* Remove tag requirement on MinGW dynamic build

Co-authored-by: Bill Rose <neptoess@gmail.com>
2022-03-31 14:53:51 +02:00
Magnus Edenhill b25454f287 Travis: Disable mingw dynamic build for now (gcc breakage)
GCC 11 adds a new symbol that is not available in the mingw/msys2 libstdc++,
which makes it impossible to run applications that were built.

Until that's fixed we disable this worker since it will fail anyway.
2022-03-30 20:13:39 +02:00
Magnus Edenhill 7560becf80 Nuget Debian build: use --source-deps-only to avoid external dependencies 2022-03-30 20:13:39 +02:00
Magnus Edenhill c2ab3cee8a Travis: build alpine & manylinux builds with --source-deps-only
This avoids relying on distro installed packages, which isn't very robust.
2022-03-30 20:13:39 +02:00
Magnus Edenhill 99b64fa32b Travis: bump integration test from AK 2.7.0 to 2.8.1 2022-02-07 20:40:24 +01:00
Magnus Edenhill 0d4da0f1f2 Travis: use Py 3.8 (not 3.5) on Xenial builder 2022-02-07 20:40:24 +01:00
Bill Rose c0cfc24cce Fix MinGW Travis build issues by breaking test execution into a separate script 2021-11-05 09:17:13 +01:00
Magnus Edenhill 3180dbd5a1 Travis: bump Linux base builder from trusty to xenial to circumvent ISRG cert expiry
.. which causes older versions of OpenSSL+curl to fail to download OpenSSL..
2021-10-05 19:25:17 +02:00
Magnus Edenhill 2fd81e149d Travis: Remove -Werror from OSX worker since OpenSSL builds have quite a few warnings 2021-09-30 14:40:55 +02:00
Magnus Edenhill 806f8f85a4 Travis: use --source-deps-only for dependencies instead of using homebrew
Homebrew is fantastically slow to update to Travis-CI, and it is burning
build credits like crazy.
2021-09-30 14:40:55 +02:00
Magnus Edenhill c33cdc54fd Travis: reduce build minutes (tagged jobs) 2021-09-30 14:40:55 +02:00
Magnus Edenhill 7bc7d6088f Don't build ancient OSX Sierra artifacts 2021-09-30 14:40:55 +02:00
Magnus Edenhill 33de703cda Travis: show sha256sums of artifacts prior to deploy 2021-09-15 21:46:12 +02:00
Magnus Edenhill 3f837a734d Travis: New secure env vars 2021-09-15 21:46:12 +02:00
Magnus Edenhill b688390559 Travis: login with docker account to avoid rate-limiting 2021-08-26 23:07:31 +02:00
Magnus Edenhill fa6cf31498 Travis: Disable C99 for all builds but the integration test build
.. since it hampers the use of assembler (asm()) on arm64.
2021-08-20 18:43:36 +02:00
Magnus Edenhill a51bc30488 Travis ARM64: build static lib 2021-08-20 18:43:36 +02:00
Magnus Edenhill 136dd79634 Reduce Travis-CI runtime
* Reduce number of jobs when not building a tag
 * Run unit tests if no tag, and local quick suite (old default) when tagged.
 * Combine some jobs.
2021-08-20 18:43:36 +02:00
Magnus Edenhill c68b011331 Fix mingw build artifact tags 2021-04-28 16:01:25 +02:00
Magnus Edenhill f18e273d20 Travis: Disable integration tests (since they're flaky on CI) when doing release builds 2021-04-19 17:49:39 +02:00
Magnus Edenhill 7faf33afb8 travis: fix cleanup setting 2021-04-16 18:15:08 +02:00
Bill Rose 2a10b46d42
Build static librdkafka_windows.a with travis and mingw (@neptoess, #3130)
* Build static librdkafka_windows.a with travis

* Update paths to match Travis MinGW build script

* Update DLL paths

* Replace tabs with spaces

* Don't use msys2 rm, just use regular travis one

* Add Win32 DLLs to MinGW C++ pkg-config

* Relocate MinGW target_link_libraries to allow building executables

* Update CMakeLists.txt to include pkg-config for Windows DLLs for static MinGW builds

* Write to librdkafka.a instead of librdkafka_windows.a
Update CMakeLists.txt to only generate -static .pc files when building static lib
Run cmake-format on CMakeLists.txt

* Update packing script for different .a file name

* Separate MinGW static build and dynamic build
Turn WITH_SASL=ON for Windows build so OATHBEARER SASL can be used

* Restore previous whitespace style in CMakeLists.txt

* CMakeLists.txt formatting

* Undo CMakeLists.txt whitespace-only changes
Remove cmake options where we like the defaults
Add libdl and libz to static MinGW build to support WITH_PLUGINS and WITH_ZLIB

* Fix accidental tab characters in packaging/mingw-w64/travis-before-install.sh

* Default WITH_PLUGINS to ON on Windows CMake builds
Remove libdl from MinGW build
Fix typo when WITHOUT_WIN32_CONFIG is ON

* Modify CMAKE_FIND_LIBRARY_SUFFIXES instead of deleting .dll.a files

* Make use of Libs.private

* Fix a CMake check using WITH_PLUGINS when it should have been using WITH_LIBDL

* Add strip calls for MinGW static libraries

* Slight CMakeLists.txt refactor per SpaceIm comment

* Move CMAKE_FIND_LIBRARY_SUFFIXES from CMakeLists.txt to the Travis build script

Co-authored-by: neptoess <neptoess@gmail.com>
2021-04-07 08:30:24 +02:00
Magnus Edenhill 58590bc961 Travis: bump to AK 2.7.0 and skip packaging builds unless tag is set 2021-04-06 08:33:49 +02:00
Magnus Edenhill 74b1790f97 Build pypa/manylinux2010 to replace debian9 build in nuget librdkafka.redist 2021-01-18 14:43:34 +01:00
Magnus Edenhill 130e66db6a Travis: upgrade openssl1.1 2021-01-04 10:15:30 +01:00
Magnus Edenhill 7057755521 Travis: --enable-static for arm64 build 2021-01-04 10:15:30 +01:00
Magnus Edenhill 376ab13da0 Additional stripping 2021-01-04 10:15:30 +01:00
Magnus Edenhill b9cfeb3273 Travis: Use TRAVIS_CPU_ARCH instead of hardcoded x64 for artifact uploads 2021-01-04 10:15:30 +01:00
Magnus Edenhill 90496b7c25 Travis: Add --enable-strip for builds that provide packaging artifacts
This should drastically reduce the size of bundled librdkafkas.
2021-01-04 10:15:30 +01:00
Magnus Edenhill 8c78671355 Add arm64 travis job and linux-arm64 (ubuntu 18.04) build to NuGet package 2021-01-04 10:15:30 +01:00
Magnus Edenhill 1327a5485e Remove CentOS 6 from builds and tests, it is now EOL 2020-12-10 18:17:09 +01:00
Magnus Edenhill 36901b9e60 Travis: refresh docker centos:6 cache before build to fix invalid cache entry 2020-11-20 15:06:01 +01:00
Magnus Edenhill d31c416498 Travis: terminate on failed scripts 2020-11-16 20:28:58 +01:00
Magnus Edenhill 0e9ba3a62e Travis integration tests: use AK 2.6.0 2020-11-05 10:09:32 +01:00
Shahid f552496ae8
Travis: add s390x worker (@shahidhs-ibm, #3124) 2020-11-02 16:31:22 +01:00
Magnus Edenhill f8c307760e Travis: Add gdb (to print test crashes) on one more worker 2020-10-19 19:38:38 +02:00
Magnus Edenhill 8ad6822fd3 Strict C99 and C++98 checks with dev-conf.sh and on Travis CI 2020-09-04 08:29:55 +02:00
Magnus Edenhill f361baaa2c configure: Added --disable-regex-ext 2020-07-02 07:23:08 +02:00
Magnus Edenhill 30543f9223 Use dedicated Travis worker for RPM packaging to avoid timeouts
It runs for a long time, it really does.
2020-05-05 09:10:23 +02:00
Magnus Edenhill cedb291739 Depend on Python3 instead of EOL Python2 (#2829) 2020-04-29 11:18:44 +02:00
Edward Bordin 5f1fc42b2e
Add MinGW-w64 builds (@ed-alertedh, #2553)
* Add build configuration for MinGW-w64. Primarily just needed to use _WIN32 instead of _MSC_VER in header guards. Various other small patches included to account for compiler differences.

* try alternative win32 datetime format method avoiding ATL (which isn't available in MinGW)
2020-04-29 08:24:55 +02:00
Magnus Edenhill 49c7b69dd9 Travis: enable -Werror on some builds
.. to catch compiler warnings in PRs.
2020-04-23 17:05:09 +02:00
Magnus Edenhill af72cf17c4 travis: Disable homebrew auto update on old xcode image to avoid timeouts 2020-03-27 13:19:54 +01:00
Magnus Edenhill 9b3d5206b9 Added --disable-syslog and build static osx libs on older OSX 10.12 to improve compatibility. 2020-03-27 13:18:52 +01:00
Magnus Edenhill c279d65fdf configure libssl static: disable features we don't need
These options are taken from the Debian package rules.

Additional changes:
 * make sure perl is installed on travis - required by openssl installer
 * always reconfigure openssl, don't try to be smart.
2020-03-27 13:18:52 +01:00
Magnus Edenhill 01d06d15bd travis: add static-only builders 2020-03-27 13:18:52 +01:00
Magnus Edenhill c3a9cc49f4 travis: retry integration tests on failure 2020-03-12 14:22:22 +01:00
Magnus Edenhill 89d8023584 Travis: use AK 2.4.0 for integration tests 2020-03-04 15:18:47 +01:00
Magnus Edenhill dcb0e8b27d Travis: run gdb on test core file to get backtrace. 2020-03-04 15:18:47 +01:00
Magnus Edenhill 212bfc9004 CI: Run local tests in quick mode too 2020-02-05 14:53:09 +01:00