11env :
22 global :
3- - LIBRDKAFKA_VERSION=v1.5.0
3+ - LIBRDKAFKA_VERSION=v1.5.2
44jobs :
55 include :
6- # Source package verification with Python 2.7
7- - os : linux
6+ - name : " Source package verification with Python 2.7 (Linux) "
7+ os : linux
88 language : python
99 dist : trusty
1010 python : " 2.7"
1111 env : LD_LIBRARY_PATH="$PWD/tmp-build/lib"
12- # Source package verification with Python 3.6
13- - os : linux
12+ - name : " Source package verification with Python 3.6 (Linux) "
13+ os : linux
1414 language : python
1515 dist : trusty
1616 python : " 3.6"
1717 env : LD_LIBRARY_PATH="$PWD/tmp-build/lib"
18- # Source package verification with Python 2.7
19- - os : osx
18+ - name : " Source package verification with Python 2.7 (OSX) "
19+ os : osx
2020 python : " 2.7"
2121 env : DYLD_LIBRARY_PATH="$PWD/tmp-build/lib" INTERPRETER_VERSION="2.7.17"
22- # Source package verification with Python 3.6
23- - os : osx
22+ - name : " Source package verification with Python 3.6 (OSX) +docs "
23+ os : osx
2424 python : " 3.6"
2525 env : DYLD_LIBRARY_PATH="$PWD/tmp-build/lib" MK_DOCS="y" INTERPRETER_VERSION="3.6.5"
26- # cibuildwheel for osx
27- - os : osx
26+ - name : " cibuildwheel (OSX) "
27+ os : osx
2828 env : CIBW_BEFORE_BUILD="tools/bootstrap-librdkafka.sh --require-ssl ${LIBRDKAFKA_VERSION} tmp" CFLAGS="-Itmp/include" LDFLAGS="-Ltmp/lib" INTERPRETER_VERSION="2.7.17"
29- # cibuildwheel for manylinux
30- - os : linux
29+ - name : " cibuildwheel ( manylinux) "
30+ os : linux
3131 dist : trusty
3232 env :
3333 - CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh ${LIBRDKAFKA_VERSION}"
@@ -53,22 +53,20 @@ before_install:
5353install :
5454 - tools/install-interceptors.sh
5555 - pip install -r tests/requirements.txt
56+ - pip install tox
5657 - flake8
5758 - if [[ $MK_DOCS == y ]]; then pip install -r docs/requirements.txt; fi
5859 - if [[ -z $CIBW_BEFORE_BUILD ]]; then tools/bootstrap-librdkafka.sh --require-ssl ${LIBRDKAFKA_VERSION} tmp-build && pip install --global-option=build_ext --global-option="-Itmp-build/include/" --global-option="-Ltmp-build/lib" . .[avro]; fi
5960
6061# Build wheels
61- script :
62- - if [[ -n $TRAVIS_TAG && -n $CIBW_BEFORE_BUILD ]]; then cibuildwheel --output-dir wheelhouse1 && tools/fixup-wheels.sh wheelhouse1 wheelhouse; fi
63-
6462# Make plugins available for tests
6563# Execute tests if not CIBW_BEFORE_BUILD [osx, linux]
6664# Execute integration tests if CIBW_BEFORE_BUILD
6765# Build docs if MK_DOCS
68- after_script :
66+ script :
67+ - if [[ -n $TRAVIS_TAG && -n $CIBW_BEFORE_BUILD ]]; then cibuildwheel --output-dir wheelhouse1 && tools/fixup-wheels.sh wheelhouse1 wheelhouse; fi
6968 - ldd staging/libs/* || otool -L staging/libs/* || true
70- - if [[ -z $CIBW_BEFORE_BUILD && $TRAVIS_OS_NAME == "osx" ]]; then DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:staging/libs py.test --timeout=60 --ignore=tmp-build --import-mode append; fi
71- - if [[ -z $CIBW_BEFORE_BUILD && $TRAVIS_OS_NAME == "linux" ]]; then LD_LIBRARY_PATH=$LD_LIBRARY_PATH:staging/libs py.test --timeout=60 --ignore=tmp-build --import-mode append; fi
69+ - [[ -n $CIBW_BEFORE_BUILD ]] || LD_LIBRARY_PATH=$LD_LIBRARY_PATH:staging/libs DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:staging/libs tox
7270 - if [[ -n $TRAVIS_TAG && $TRAVIS_OS_NAME == osx && -n $CIBW_BEFORE_BUILD ]]; then tools/test-wheel.sh wheelhouse; fi
7371 - if [[ $MK_DOCS == y ]]; then make docs; fi
7472
0 commit comments