1
1
matrix :
2
2
include :
3
- # Source package verification with Python 2.7 and librdkafka v0.11.6-RC3
3
+ # Source package verification with Python 2.7 and librdkafka v0.11.6
4
4
- os : linux
5
5
language : python
6
6
dist : trusty
7
7
python : " 2.7"
8
- env : LD_LIBRARY_PATH="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6-RC3
9
- # Source package verification with Python 3.6 and librdkafka v0.11.6-RC3
8
+ env : LD_LIBRARY_PATH="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6
9
+ # Source package verification with Python 3.6 and librdkafka v0.11.6
10
10
- os : linux
11
11
language : python
12
12
dist : trusty
13
13
python : " 3.6"
14
- env : LD_LIBRARY_PATH="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6-RC3
15
- # Source package verification with Python 2.7 and librdkafka v0.11.6-RC3
14
+ env : LD_LIBRARY_PATH="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6
15
+ # Source package verification with Python 2.7 and librdkafka v0.11.6
16
16
- os : osx
17
17
python : " 2.7"
18
- env : LD_LIBRARY_PATH ="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6-RC3
18
+ env : DYLD_LIBRARY_PATH ="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6
19
19
before_install :
20
20
- pip install -U pip && pip install virtualenv
21
21
- brew update && brew upgrade pyenv
22
22
- pyenv install -f 2.7.15
23
23
- pip install virtualenv
24
24
- virtualenv -p ~/.pyenv/versions/2.7.15/bin/python ./env
25
25
- source env/bin/activate
26
- # Source package verification with Python 3.6 and librdkafka v0.11.6-RC3
26
+ # Source package verification with Python 3.6 and librdkafka v0.11.6
27
27
- os : osx
28
28
python : " 3.6"
29
- env : LD_LIBRARY_PATH ="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6-RC3
29
+ env : DYLD_LIBRARY_PATH ="$PWD/tmp-build/lib" LIBRDKAFKA_VERSION=v0.11.6
30
30
before_install :
31
31
- pip install -U pip && pip install virtualenv
32
32
- brew update && brew upgrade pyenv
@@ -36,35 +36,38 @@ matrix:
36
36
- source env/bin/activate
37
37
# cibuildwheel for osx
38
38
- os : osx
39
- env : CIBW_BEFORE_BUILD="tools/bootstrap-librdkafka.sh --require-ssl v0.11.6-RC3 tmp" CFLAGS="-Itmp/include" LDFLAGS="-Ltmp/lib"
39
+ env : CIBW_BEFORE_BUILD="tools/bootstrap-librdkafka.sh --require-ssl v0.11.6 tmp" CFLAGS="-Itmp/include" LDFLAGS="-Ltmp/lib"
40
40
before_install :
41
41
- brew update && brew upgrade pyenv
42
42
- pip install virtualenv
43
43
# cibuildwheel for manylinux
44
44
- os : linux
45
45
dist : trusty
46
46
sudo : required
47
- env : CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh v0.11.6-RC3 "
47
+ env : CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh v0.11.6"
48
48
language : python
49
49
python : " 2.7"
50
50
services : docker
51
51
52
52
install :
53
+ - tools/install-interceptors.sh
53
54
- pip install -U pip && pip install virtualenv
54
55
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then python -m ensurepip && virtualenv /tmp/venv && source /tmp/venv/bin/activate ; fi
55
- - if [[ $TRAVIS_OS_NAME == "osx" ]]; then rvm get stable; fi
56
+ - if [[ $TRAVIS_OS_NAME == "osx" ]]; then rvm get stable; fi
56
57
- if [[ -z $CIBW_BEFORE_BUILD ]]; then pip install pytest-timeout flake8 ; fi
57
58
- if [[ -z $CIBW_BEFORE_BUILD ]]; then rm -rf tmp-build ; tools/bootstrap-librdkafka.sh --require-ssl ${LIBRDKAFKA_VERSION} tmp-build ; fi
58
59
- if [[ -n $TRAVIS_TAG && -n $CIBW_BEFORE_BUILD ]]; then pip install cibuildwheel; fi
59
60
60
-
61
61
script :
62
62
- if [[ -z $CIBW_BEFORE_BUILD ]]; then pip install -v --global-option=build_ext --global-option="-Itmp-build/include/" --global-option="-Ltmp-build/lib" . .[avro] ; fi
63
63
- if [[ -z $CIBW_BEFORE_BUILD ]]; then flake8 ; fi
64
- - if [[ -z $CIBW_BEFORE_BUILD ]]; then py.test -v --timeout 20 --ignore=tmp-build --import-mode append ; fi
65
- - if [[ -n $TRAVIS_TAG && -n $CIBW_BEFORE_BUILD ]]; then cibuildwheel --output-dir wheelhouse ; ls -la wheelhouse/ ; fi
64
+ # Make plugins available for tests
65
+ - ldd staging/libs/* || otool -L staging/libs/* || true
66
+ - if [[ -z $CIBW_BEFORE_BUILD && $TRAVIS_OS_NAME == "osx" ]]; then DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:staging/libs py.test -v --timeout 20 --ignore=tmp-build --import-mode append ; fi
67
+ - if [[ -z $CIBW_BEFORE_BUILD && $TRAVIS_OS_NAME == "linux" ]]; then LD_LIBRARY_PATH=$LD_LIBRARY_PATH:staging/libs py.test -v --timeout 20 --ignore=tmp-build --import-mode append ; fi
68
+ - if [[ -n $TRAVIS_TAG && -n $CIBW_BEFORE_BUILD ]]; then cibuildwheel --output-dir wheelhouse1 && tools/fixup-wheels.sh wheelhouse1 wheelhouse ; fi
66
69
- if [[ -n $TRAVIS_TAG && $TRAVIS_OS_NAME == linux && -n $CIBW_BEFORE_BUILD ]]; then tools/test-manylinux.sh ; fi
67
-
70
+ - if [[ -n $TRAVIS_TAG && $TRAVIS_OS_NAME == osx && -n $CIBW_BEFORE_BUILD ]]; then tools/test-osx.sh; fi
68
71
69
72
deploy :
70
73
provider : s3
0 commit comments