3
3
- LIBRDKAFKA_VERSION=v1.5.2
4
4
jobs :
5
5
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
8
8
language : python
9
9
dist : trusty
10
10
python : " 2.7"
11
11
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
14
14
language : python
15
15
dist : trusty
16
16
python : " 3.6"
17
17
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
20
20
python : " 2.7"
21
21
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
24
24
python : " 3.6"
25
25
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
28
28
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
31
31
dist : trusty
32
32
env :
33
33
- CIBW_BEFORE_BUILD="tools/prepare-cibuildwheel-linux.sh ${LIBRDKAFKA_VERSION}"
@@ -53,22 +53,20 @@ before_install:
53
53
install :
54
54
- tools/install-interceptors.sh
55
55
- pip install -r tests/requirements.txt
56
+ - pip install tox
56
57
- flake8
57
58
- if [[ $MK_DOCS == y ]]; then pip install -r docs/requirements.txt; fi
58
59
- 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
59
60
60
61
# 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
-
64
62
# Make plugins available for tests
65
63
# Execute tests if not CIBW_BEFORE_BUILD [osx, linux]
66
64
# Execute integration tests if CIBW_BEFORE_BUILD
67
65
# 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
69
68
- 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
72
70
- if [[ -n $TRAVIS_TAG && $TRAVIS_OS_NAME == osx && -n $CIBW_BEFORE_BUILD ]]; then tools/test-wheel.sh wheelhouse; fi
73
71
- if [[ $MK_DOCS == y ]]; then make docs; fi
74
72
0 commit comments