-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
196 lines (188 loc) · 7.02 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
sudo: false
language:
- python
matrix:
include:
- python: "2.7"
script:
- make testpy2
- python: "3.6"
- python: "3.7"
- python: "3.8"
- python: "3.9"
- name: "Python 2.7.10 on Darwin"
os: osx
osx_image: xcode9.3 # Python 2.7.14_2 running on macOS 10.13
language: shell # 'language: python' errors on Travis CI macOS
before_install:
- python --version
- pip install pip --user
- pip install pytest --user
- pip install pytest-cov --user
- pip install flake8 --user
install: pip install ".[test]" --user
script:
- make testpy2
- name: "Python 3.7.5 on Darwin"
os: osx
osx_image: xcode10.2 # Python 3.6.5 running on macOS 10.13
language: shell # 'language: python' errors on Travis CI macOS
before_install:
- python3 --version
- pip3 install pip --user
- pip3 install pytest --user
- pip3 install pytest-cov --user
- pip3 install flake8 --user
install: pip3 install ".[test]" --user
- name: "Python 3.8.5 on Darwin"
os: osx
osx_image: xcode11.6
language: shell
before_install:
- python3 --version
- pip3 install pip --user
- pip3 install pytest --user
- pip3 install pytest-cov --user
- pip3 install flake8 --user
install: pip3 install ".[test]" --user
- name: "Python 2.7.11 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version=2.7.11
- choco install codecov
- choco install make
- python --version
- python -m pip install --upgrade pip
- pip install --upgrade pip
- pip install --upgrade pytest
- pip install --upgrade pytest-cov
- pip install --upgrade flake8
script:
- make testpy2
after_success:
- codecov.exe -f coverage.xml
env: PATH=/c/tools/python:/c/tools/python/Scripts:$PATH
- name: "Python 3.6.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version=3.6.8
- choco install codecov
- choco install make
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install --upgrade pytest-cov
- pip3 install --upgrade flake8
install:
- pip3 install -r requirements.txt
script:
- python -m pytest --cov=pstream -W error --cov-report=xml --cov-branch tests
- python -m flake8 pstream tests --extend-ignore=F405,E501,F403,F401 --exclude functors.py
- python -m flake8 pstream/_async/functors.py --extend-ignore=F405,E501,F403,F401,E402
after_success:
- codecov.exe -f coverage.xml
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
- name: "Python 3.7.9 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version=3.7.9
- choco install codecov
- choco install make
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install --upgrade pytest-cov
- pip3 install --upgrade flake8
install:
- pip3 install -r requirements.txt
script:
- python -m flake8 pstream tests --extend-ignore=F405,E501,F403,F401 --exclude functors.py
- python -m flake8 pstream/_async/functors.py --extend-ignore=F405,E501,F403,F401,E402
after_success:
- codecov.exe -f coverage.xml
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
- name: "Python 3.8.6 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version=3.8.6
- choco install codecov
- choco install make
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install --upgrade pytest-cov
- pip3 install --upgrade flake8
install:
- pip3 install -r requirements.txt
script:
- python -m flake8 pstream tests --extend-ignore=F405,E501,F403,F401 --exclude functors.py
- python -m flake8 pstream/_async/functors.py --extend-ignore=F405,E501,F403,F401,E402
after_success:
- codecov.exe -f coverage.xml
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
- name: "Python 3.9.0 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version=3.9.0
- choco install codecov
- choco install make
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install --upgrade pytest-cov
- pip3 install --upgrade flake8
install:
- pip3 install -r requirements.txt
script:
- python -m flake8 pstream tests --extend-ignore=F405,E501,F403,F401 --exclude functors.py
- python -m flake8 pstream/_async/functors.py --extend-ignore=F405,E501,F403,F401,E402
after_success:
- codecov.exe -f coverage.xml
env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
- name: "Python 3.10.0-a1 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --pre
- choco install codecov
- choco install make
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install --upgrade pytest-cov
- pip3 install --upgrade flake8
install:
- pip3 install -r requirements.txt
script:
- python -m flake8 pstream tests --extend-ignore=F405,E501,F403,F401 --exclude functors.py
- python -m flake8 pstream/_async/functors.py --extend-ignore=F405,E501,F403,F401,E402
after_success:
- codecov.exe -f coverage.xml
env: PATH=/c/Python310:/c/Python310/Scripts:$PATH
before_install:
- python --version
- pip install -U pip
- pip install -U pytest
- pip install -U pytest-cov
- pip install -U flake8
install:
- pip install -r requirements.txt
script:
- make test
notifications:
email: false
after_success:
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- "main"