Skip to content

Commit 792851e

Browse files
committed
More travis fixes
1 parent 8a21057 commit 792851e

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#env:
22
# global:
33
# Wheel tests are not working due to some .cimpl import weirdness.
4-
#- CIBW_TEST_REQUIRES="pytest requests avro"
5-
#- CIBW_TEST_COMMAND="pytest {project}/tests"
4+
#- CIBW_TEST_REQUIRES="pytest requests avro" CIBW_TEST_COMMAND="pytest {project}/tests"
65

76
matrix:
87
include:
@@ -11,7 +10,7 @@ matrix:
1110
- os: linux
1211
dist: trusty
1312
sudo: required
14-
env: CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh"
13+
env: CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh master"
1514
language: python
1615
python: "2.7"
1716
services: docker
@@ -23,6 +22,10 @@ script:
2322
- cibuildwheel --output-dir wheelhouse
2423
- ls -la wheelhouse/
2524

25+
test:
26+
- if [[ $TRAVIS_OS_NAME == linux ]]; then DOCKER_IMAGES=quay.io/pypa/manylinux1_x86_64:latest tools/test-manylinux.sh ; fi
27+
28+
2629
deploy:
2730
provider: s3
2831
access_key_id:

tools/bootstrap-librdkafka.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mkdir -p "$PREFIXDIR/librdkafka"
2626
pushd "$PREFIXDIR/librdkafka"
2727

2828
test -f configure ||
29-
curl -sL "https://github.com/edenhill/librdkafka/archive/${VERSION}.tar.gz" | \
29+
curl -L "https://github.com/edenhill/librdkafka/archive/${VERSION}.tar.gz" | \
3030
tar -xz --strip-components=1 -f -
3131

3232
./configure --clean

tools/build-openssl.sh

100644100755
File mode changed.

tools/prepare-cibuildwheel-linux.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33

44
# cibuildwheel builder for Linux
55

6+
LIBRDKAFKA_VERSION=$1
7+
8+
if [[ -z $LIBRDKAFKA_VERSION ]]; then
9+
echo "Usage: $0 <librdkafka-version/tag/gitref>"
10+
exit 1
11+
fi
12+
13+
set -ex
14+
615
echo "# Installing basic system dependencies"
716
yum install -y zlib-devel gcc-c++
817

tools/test-manylinux.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
set -ex
77

8+
echo "$0 running from $(pwd): $*"
89

910
function setup_centos {
1011
# CentOS container setup
@@ -39,6 +40,13 @@ function run_single_in_docker {
3940
pip install confluent_kafka --no-index -f /io/wheelhouse
4041
pip install pytest
4142

43+
# Verify that OpenSSL and zlib are properly linked
44+
python -c '
45+
import confluent_kafka
46+
47+
p = confluent_kafka.Producer({"ssl.cipher.suites":"DEFAULT",
48+
"compression.codec":"gzip"})
49+
'
4250

4351
pushd /io/tests
4452
# Remove cached files from previous runs

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy