-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (60 loc) · 1.66 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
dist: xenial
language: python
cache: pip
install: pip install --upgrade tox
script: tox
# Drop once EOL: https://devguide.python.org/#status-of-python-branches
# Also bump python_requires in setup.py
jobs:
include:
## Linux
# CPython (in official virtualenv)
- python: '2.7'
- python: '3.5'
- python: '3.6'
- python: '3.7'
- python: '3.8'
env: TOXENV=doctest,black,pylint,pytype,bandit,coverage
# PyPy (in official virtualenv)
- python: pypy
env: TOXENV=pypy
- python: pypy3
env: TOXENV=pypy3
## OSX
# CPython (in virtualenv, since it's not officially supported)
- os: osx
language: sh
env:
- TOXENV=py3 # Whatever one you happen to get...
- HOMEBREW_NO_INSTALL_CLEANUP=1
- HOMEBREW_NO_ANALYTICS=1
before_cache:
- rm -f "$HOME/Library/Caches/pip/log/debug.log"
cache:
directories:
- "$HOME/Library/Caches/pip"
addons:
homebrew:
packages: python3
before_install:
- python3 -m pip install --upgrade virtualenv
- virtualenv -p python3 "$HOME/venv"
- source "$HOME/venv/bin/activate"
## Windows
- os: windows
language: shell
env:
- TOXENV=py38
before_install:
- choco install python --version 3.8.1
- python --version
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
## Special jobs
# Run long Hypothesis tests for release/cron
- if: branch =~ ^release/.*$ or type = cron
python: '3.8'
env: TOXENV=py-release
notifications:
email: