File tree Expand file tree Collapse file tree 5 files changed +24
-4
lines changed Expand file tree Collapse file tree 5 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1
1
# env:
2
2
# global:
3
3
# 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"
6
5
7
6
matrix :
8
7
include :
@@ -11,7 +10,7 @@ matrix:
11
10
- os : linux
12
11
dist : trusty
13
12
sudo : required
14
- env : CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh"
13
+ env : CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh master "
15
14
language : python
16
15
python : " 2.7"
17
16
services : docker
@@ -23,6 +22,10 @@ script:
23
22
- cibuildwheel --output-dir wheelhouse
24
23
- ls -la wheelhouse/
25
24
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
+
26
29
deploy :
27
30
provider : s3
28
31
access_key_id :
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ mkdir -p "$PREFIXDIR/librdkafka"
26
26
pushd " $PREFIXDIR /librdkafka"
27
27
28
28
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" | \
30
30
tar -xz --strip-components=1 -f -
31
31
32
32
./configure --clean
Original file line number Diff line number Diff line change 3
3
4
4
# cibuildwheel builder for Linux
5
5
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
+
6
15
echo " # Installing basic system dependencies"
7
16
yum install -y zlib-devel gcc-c++
8
17
Original file line number Diff line number Diff line change 5
5
6
6
set -ex
7
7
8
+ echo " $0 running from $( pwd) : $* "
8
9
9
10
function setup_centos {
10
11
# CentOS container setup
@@ -39,6 +40,13 @@ function run_single_in_docker {
39
40
pip install confluent_kafka --no-index -f /io/wheelhouse
40
41
pip install pytest
41
42
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
+ '
42
50
43
51
pushd /io/tests
44
52
# Remove cached files from previous runs
You can’t perform that action at this time.
0 commit comments