forked from zeromq/pyzmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (98 loc) · 2.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
language: python
dist: trusty
cache:
- apt
- pip
python:
- 2.7
- 3.6
- pypy2.7-5.8.0
- pypy3.5-5.8.0
env:
- ZMQ=
- ZMQ=bundled
before_install:
- sudo add-apt-repository -y ppa:anton+/dnscrypt
- sudo apt-get update
- |
# install libzmq, libsodium unless zmq=bundled
if [[ $ZMQ != bundled ]]; then
sudo apt-get install -y -qq libzmq3-dev libsodium-dev
fi
- |
# install cython unless pypy
if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then
pip install cython
fi
- |
# build libzmq
if [[ ! -z "$ZMQ" && $ZMQ != bundled ]]; then
wget https://github.com/zeromq/$ZMQ/archive/master.zip -O libzmq.zip
unzip libzmq.zip
pushd "$ZMQ-master"
./autogen.sh
./configure --enable-drafts
make -j
sudo make install
sudo ldconfig
popd
export ZMQ=/usr/local
export ZMQ_DRAFT_API=1
fi
- pip install -r test-requirements.txt
- |
# install pinned tornado
if [[ "$TORNADO" == "master" ]]; then
pip install https://github.com/tornadoweb/tornado/archive/master.zip
elif [[ "$TORNADO" == "none" ]]; then
pip uninstall -yq tornado
elif [[ ! -z "$TORNADO" ]]; then
pip install tornado==${TORNADO}
fi
- pip freeze
install:
- python setup.py build_ext --inplace --zmq=$ZMQ
matrix:
include:
- python: pypy
env: ZMQ=bundled
- python: 3.7
env: ZMQ=
dist: xenial
- python: 3.7
env: ZMQ=bundled
dist: xenial
- python: 3.6
env:
- ZMQ=
- TORNADO=none
- python: 3.6
env:
- ZMQ=
- TORNADO=master
- python: 3.6
env:
- ZMQ=
- TORNADO=4.5.*
- python: 2.7
env:
- ZMQ=
- TORNADO=4.5.*
- python: 3.5
env: ZMQ=libzmq
- python: 3.4
env: ZMQ=zeromq4-x
- python: 3.4
env: ZMQ=zeromq4-1
- python: 3.4
env: ZMQ=zeromq3-x
- python: 3.3
env: ZMQ=
- python: nightly
env: ZMQ=
- python: nightly
env: ZMQ=bundled
allow_failures:
- env: ZMQ=libzmq
- python: nightly
script: travis_retry python setup.py test