-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
54 lines (53 loc) · 1.69 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
language: python
cache: pip
dist: xenial
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
env:
- TORNADO_VERSION=6.0 PYTEST_VERSION=5.2
- TORNADO_VERSION=6.0 PYTEST_VERSION=4.3
- TORNADO_VERSION=5.0 PYTEST_VERSION=5.2
- TORNADO_VERSION=5.0 PYTEST_VERSION=4.0
- TORNADO_VERSION=5.0.0 PYTEST_VERSION=3.6
- TORNADO_VERSION=5.0.0 PYTEST_VERSION=4.0.0
- TORNADO_VERSION=4.3.0 PYTEST_VERSION=3.6
- TORNADO_VERSION=4.1.0 PYTEST_VERSION=3.6.4
install:
- pip install tornado~=$TORNADO_VERSION pytest~=$PYTEST_VERSION
- pip install PyOpenSSL # used to create a cert for testing
- python setup.py install
- pip install coverage coveralls
script:
- python test/create_cert.py --cert test/testcert.pem
- coverage run --branch --source pytest_tornado.plugin -m pytest --strict
- coverage report -m
after_success:
- coveralls
jobs:
exclude:
# Tornado 6 only supports Python >= 3.5
- python: 2.7
env: TORNADO_VERSION=6.0 PYTEST_VERSION=4.3
# Pytest 4.0.0 requires a version of attrs that does not work with Python 3.8.
- python: 3.8
env: TORNADO_VERSION=5.0.0 PYTEST_VERSION=4.0.0
# pytest 5 requires Python 3
- python: 2.7
env: TORNADO_VERSION=6.0 PYTEST_VERSION=5.2
- python: 2.7
env: TORNADO_VERSION=5.0 PYTEST_VERSION=5.2
include:
- stage: deploy
python: 3.7
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: eugeniy
password:
secure: gmpsfekSDT9LuF3XkJK64myhQ6Xg8WyqI/0m5Gnnb+hSrCFGD8/dgtRdLEULuDkFPvL/FsoE2L6XcdKuqaKkqSM3kk4Min8hqGapcfe/OSOkCDaYSUBCXmV2dlbtMTAzHfo3zpueToUelZvblw9y3wXVFWkmr1mf47Q9kUPIgnU=
on:
tags: true