forked from Martiusweb/asynctest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
164 lines (160 loc) · 4.47 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
cache: pip
matrix:
fast_finish: true
include:
- os: osx
language: generic
env: NAME="Python 3.4"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install 3.4.9
- pyenv local 3.4.9
- eval "$(pyenv init -)"
- python3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: osx
language: generic
env: NAME="Python 3.5"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install 3.5.6
- pyenv local 3.5.6
- eval "$(pyenv init -)"
- python3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: osx
language: generic
env: NAME="Python 3.6"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install 3.6.6
- pyenv local 3.6.6
- eval "$(pyenv init -)"
- python3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: osx
language: generic
env: NAME="Python 3.7"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install 3.7.0
- pyenv local 3.7.0
- eval "$(pyenv init -)"
- python3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: osx
language: generic
env: NAME="Python pypy3"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install pypy3.5-6.0.0
- pyenv local pypy3.5-6.0.0
- eval "$(pyenv init -)"
- pypy3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: osx
language: generic
env: NAME="Python 3.6-dev"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install 3.6-dev
- pyenv local 3.6-dev
- eval "$(pyenv init -)"
- python3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: osx
language: generic
env: NAME="Python 3.7-dev"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install 3.7-dev
- pyenv local 3.7-dev
- eval "$(pyenv init -)"
- python3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: osx
language: generic
env: NAME="Python 3.8-dev"
before_install:
- brew update
- brew upgrade pyenv || brew install pyenv || true
- pyenv install 3.8-dev
- pyenv local 3.8-dev
- eval "$(pyenv init -)"
- python3 -m venv env
- pyenv local --unset
- source env/bin/activate
- os: linux
language: python
python: 3.4
- os: linux
language: python
python: 3.5
- os: linux
language: python
python: 3.6
- os: linux
language: python
python: &python_major_ver 3.7
dist: xenial
sudo: true
- os: linux
language: python
python: 3.6-dev
- os: linux
language: python
python: 3.7-dev
dist: xenial
sudo: true
- os: linux
language: python
python: 3.8-dev
dist: xenial
sudo: true
- os: linux
language: python
python: pypy3
allow_failures:
- os: osx
env: NAME="Python 3.6-dev"
- os: osx
env: NAME="Python 3.7-dev"
- os: osx
env: NAME="Python 3.8-dev"
- os: linux
python: 3.6-dev
- os: linux
python: 3.7-dev
- os: linux
python: 3.8-dev
install:
- curl https://bootstrap.pypa.io/get-pip.py | python
- python -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0
script:
- python -m unittest --verbose test
- "[[ $(python -c \"import platform; print(platform.python_implementation())\") == \"CPython\" ]] && PYTHONASYNCIODEBUG=1 python -m unittest test || true"
deploy:
provider: pypi
user: martius
password:
secure: CkgSH/6923CeZK+4ZW9Flm/az4ne7ODxhdEPWfk/NCU6pBAQNw1mCCE71kCKk8jPZ+R/1yHXR1uoXSblDmE4vNMJoHVg3NxEFZ7HZC82ZRmqSDxIMzUw+mVyvvNE6qrKXtSAOF7un8YpMrKCN60/zdOap4lcmTkrq/5R/tVH7bQ=
distributions: sdist bdist_wheel
on: # Only when a tag is on master and matches vX.Y.Z
python: *python_major_ver
tags: true
branch: master
condition: '$TRAVIS_TAG =~ ^v([0-9]+\.){2}[0-9]+$'