-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
174 lines (154 loc) · 4.73 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
language: python
dist: bionic
# safelist
branches:
only:
- master
matrix:
include:
- name: "Windows Choco 3.8 TOXENV=Check,Radon"
os: windows
language: sh
python: 3.8
env:
- TOXENV=check,radon
- PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
- choco install python --version=3.8.1
- pip3 install --upgrade --user pip
- name: "Windows Choco 3.7 TOXENV=docs"
os: windows
language: sh
python: 3.7
env:
- TOXENV=docs
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
- choco install python --version=3.7.6
- pip3 install --upgrade --user pip
- name: "Windows Choco 3.8 TOXENV=py38,coveralls"
os: windows
language: sh
python: 3.8
env:
- TOXENV=py38,codecov
- PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
- choco install python --version=3.8.1
- pip3 install --upgrade --user pip
- name: "Windows Choco 3.7 TOXENV=py37,coveralls"
os: windows
language: sh
python: 3.7
env:
- TOXENV=py37,codecov
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
- choco install python --version=3.7.6
- pip3 install --upgrade --user pip
- name: "Windows Choco 3.6 TOXENV=py36,coveralls"
os: windows
language: sh
python: 3.6
env:
- TOXENV=py36,codecov
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
before_install:
- choco install python --version=3.6.8
- pip3 install --upgrade --user pip
- name: "Linux Python 3.8 TOXENV=check,radon"
os: linux
python: 3.8
env: TOXENV=check,radon
before_install:
- python -m pip install --upgrade pip wheel
- name: "Linux Python 3.8 TOXENV=docs"
os: linux
python: 3.7
env: TOXENV=docs
before_install:
- python -m pip install --upgrade pip wheel
- name: "Linux Python 3.8 TOXENV=py38,codecov"
os: linux
python: 3.8
env: TOXENV=py38,codecov
before_install:
- python -m pip install --upgrade pip wheel
- name: "Linux Python 3.7 TOXENV=py37,codecov"
os: linux
python: 3.7
env: TOXENV=py37,codecov
before_install:
- python -m pip install --upgrade pip wheel
- name: "Linux Python 3.6 TOXENV=py36,codecov"
os: linux
python: 3.6
env: TOXENV=py36,codecov
before_install:
- python -m pip install --upgrade pip wheel
- name: "OSX Default Python 3.7 TOXENV=check,radon"
os: osx
osx_image: xcode11.3
language: sh
env:
TOXENV=check,radon
before_install:
- python3 -m pip install --upgrade pip wheel
- name: "OSX Default Python 3.7 TOXENV=docs"
os: osx
osx_image: xcode11.3
language: sh
env: TOXENV=docs
before_install:
- python3 -m pip install --upgrade pip wheel
- name: "OSX Conda 3.8 TOXENV=py38,codecov"
os: osx
osx_image: xcode11.3
language: sh
python: "3.8"
env: TOXENV=py38,codecov
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-4.7.12.1-MacOSX-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n travenv python=$TRAVIS_PYTHON_VERSION
- conda activate travenv
- name: "OSX Default Python 3.7 TOXENV=py37,codecov"
os: osx
osx_image: xcode11.3
language: sh
env: TOXENV=py37,codecov
before_install:
- python3 -m pip install --upgrade pip wheel
- name: "OSX Brew Python 3.6 TOXENV=py36,codecov"
os: osx
osx_image: xcode11.3
language: sh
env: TOXENV=py36,codecov
before_install:
# https://stackoverflow.com/questions/51125013/
- brew unlink python
- brew uninstall --ignore-dependencies openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
- brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
- brew info python
- brew switch python 3.6.5_1
- python3 -m pip install --upgrade pip wheel
addons:
homebrew:
packages: python
install:
- pip3 install tox tox-venv
- tox --version
script:
- tox -v
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
notifications:
email:
on_success: never
on_failure: always