forked from python-websockets/websockets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 1 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
env:
global:
# websockets only works on Python >= 3.6.
- CIBW_SKIP="cp27-* cp33-* cp34-* cp35-*"
- CIBW_TEST_COMMAND="python3 -W default -m unittest"
- WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100
matrix:
include:
- language: python
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required
python: "3.7"
services:
- docker
- os: osx
osx_image: xcode8.3
install:
# Python 3 is needed to run cibuildwheel for websockets.
- if [ "${TRAVIS_OS_NAME:-}" == "osx" ]; then
brew update;
brew upgrade python;
fi
# Install cibuildwheel using pip3 to make sure Python 3 is used.
- pip3 install --upgrade cibuildwheel
# Create file '.cibuildwheel' so that extension build is not optional (c.f. setup.py).
- touch .cibuildwheel
script:
- cibuildwheel --output-dir wheelhouse
# Upload to PyPI on tags
- if [ "${TRAVIS_TAG:-}" != "" ]; then
pip3 install twine;
python3 -m twine upload --skip-existing wheelhouse/*;
fi