forked from geventhttpclient/geventhttpclient
/
.travis.yml
55 lines (54 loc) · 1.37 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
language: python
sudo: false
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
install:
- "pip install -r requirements-dev.txt"
- "pip install ."
script: py.test src/geventhttpclient/tests
jobs:
include:
- stage: build
sudo: required
services:
- docker
os: linux
python: "3.8"
install:
- pip install cibuildwheel==1.3.0
script:
- cibuildwheel --output-dir wheelhouse
# Build sdist distribution as well
- python setup.py sdist -d wheelhouse
# Upload to PyPI on tags
- if [ "${TRAVIS_TAG:-}" != "" ]; then
pip install twine;
python -m twine upload --skip-existing wheelhouse/*;
fi
env:
- CIBW_SKIP="cp33 cp34"
- stage: build
sudo: required
os: osx
osx_image: xcode9.4
language: generic
install:
# Python 3 is needed to run cibuildwheel
- if [ "${TRAVIS_OS_NAME:-}" == "osx" ]; then
brew update;
brew upgrade python;
true;
fi
- pip3 install cibuildwheel==1.3.0
script:
- cibuildwheel --output-dir wheelhouse
# Upload to PyPI on tags
- if [ "${TRAVIS_TAG:-}" != "" ]; then
pip install twine;
python -m twine upload --skip-existing wheelhouse/*;
fi
env:
- CIBW_SKIP="cp33 cp34"