-
Notifications
You must be signed in to change notification settings - Fork 81
/
.travis.yml
137 lines (127 loc) · 3.8 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
git:
depth: 1
cache:
directories:
- $HOME/.cache/pyenv
- /opt/pyenv/versions/$PYENV_VERSION
- $HOME/pyenv/versions/$PYENV_VERSION
pip: true
env:
global:
- PYTHON_BUILD_CACHE_PATH=$HOME/.cache/pyenv
addons:
homebrew:
packages:
- pyenv
- openssl
- readline
- xz
- zlib
update: true
jobs:
fast_finish: true
include:
- &linux
os: linux
language: python
env: PYENV_VERSION=2.6.9 TOXENV=py26
- <<: *linux
env: PYENV_VERSION=2.7.18 TOXENV=py27
- <<: *linux
env: PYENV_VERSION=2.7-dev TOXENV=py27
- <<: *linux
env: PYENV_VERSION=3.4.10 TOXENV=py34
- <<: *linux
env: PYENV_VERSION=3.5.10 TOXENV=py35
- <<: *linux
env: PYENV_VERSION=3.5-dev TOXENV=py35
- <<: *linux
env: PYENV_VERSION=3.6.12 TOXENV=py36 DEPLOY=1
- <<: *linux
env: PYENV_VERSION=3.6-dev TOXENV=py36
- <<: *linux
env: PYENV_VERSION=3.7.9 TOXENV=py37
- <<: *linux
env: PYENV_VERSION=3.7-dev TOXENV=py37
- <<: *linux
env: PYENV_VERSION=3.8.7 TOXENV=py38
- <<: *linux
env: PYENV_VERSION=3.8-dev TOXENV=py38
- <<: *linux
env: PYENV_VERSION=3.9.1 TOXENV=py39
- <<: *linux
env: PYENV_VERSION=3.9-dev TOXENV=py39
- <<: *linux
env: PYENV_VERSION=pypy2.7-7.3.1 TOXENV=pypy
- <<: *linux
env: PYENV_VERSION=pypy3.6-7.3.1 TOXENV=pypy3
- &osx
os: osx
osx_image: xcode12.2
language: generic
env: PYENV_VERSION=2.7.18 TOXENV=py27
- <<: *osx
env: PYENV_VERSION=2.7-dev TOXENV=py27
- <<: *osx
env: PYENV_VERSION=3.5.10 TOXENV=py35
- <<: *osx
env: PYENV_VERSION=3.5-dev TOXENV=py35
- <<: *osx
env: PYENV_VERSION=3.6.12 TOXENV=py36
- <<: *osx
env: PYENV_VERSION=3.6-dev TOXENV=py36
- <<: *osx
env: PYENV_VERSION=3.7.9 TOXENV=py37
- <<: *osx
env: PYENV_VERSION=3.7-dev TOXENV=py37
- <<: *osx
env: PYENV_VERSION=3.8.7 TOXENV=py38
- <<: *osx
env: PYENV_VERSION=3.8-dev TOXENV=py38
- <<: *osx
env: PYENV_VERSION=3.9.1 TOXENV=py39
- <<: *osx
env: PYENV_VERSION=3.9-dev TOXENV=py39
- <<: *osx
env: PYENV_VERSION=pypy2.7-7.3.1 TOXENV=pypy
- <<: *osx
env: PYENV_VERSION=pypy3.6-7.3.1 TOXENV=pypy3
allow_failures:
- env: PYENV_VERSION=2.7-dev TOXENV=py27
- env: PYENV_VERSION=3.5-dev TOXENV=py35
- env: PYENV_VERSION=3.6-dev TOXENV=py36
- env: PYENV_VERSION=3.7-dev TOXENV=py37
- env: PYENV_VERSION=3.8-dev TOXENV=py38
- env: PYENV_VERSION=3.9-dev TOXENV=py39
before_install:
- mkdir -p "${PYTHON_BUILD_CACHE_PATH}"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then git -C "$(pyenv root)" fetch && git -C "$(pyenv root)" checkout master && git -C "$(pyenv root)" pull; fi
install:
- python -m pip install -r travis-requirements.txt
- pyenv install $(pyenv exec python --version >/dev/null 2>&1 && echo "--skip-existing" || echo "--force") "${PYENV_VERSION}"
script:
- python -m tox -vv -- --cov-report=xml
after_success:
- python -m codecov --required
before_deploy:
- python setup.py sdist bdist_wheel
deploy:
- provider: pypi
username: Ilya.Kulakov
password:
secure: "fDYi/HJvYyqUggKmN/Dc6YewUsBAzHWBdTYMpDfHETeOIvv2G268atnIwcoWav63fwPUpagwOlzQhRklqeLRmjEzr4M+wzFsAQVAnj6a7ChLPWPmgZlClFRpm6leWZjzGD+1FPnH/vvwTHlDi7j+1zgfh4WEellnw3hU+Lzjx+o="
distributions: "sdist bdist_wheel"
on:
tags: true
branch: master
condition: $DEPLOY = 1
- provider: releases
cleanup: false
token:
secure: "QHn7vzWo7rbgemP37qdNU4h+q7Xb2CQ7HxPFfa7yTsxFd8V4+sQLVrnaQtzYTM8dJWvRgi8PVHVGl2VGnQAiRM4Nd/NE/3HL9aHQIfWRtZ6XHfNVQ55bxJzLfZZy2M+32b8W268ELj3ty4C3Mo7TuOTv4svQoRDrLzGozJCpu+w="
file_glob: true
file: dist/*
on:
tags: true
branch: master
condition: $DEPLOY = 1