blob: 6a9cdac23ee76eebf6ec974d164af75666b75ba0 (
plain)
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
|
language: python
matrix:
include:
- os: linux
python: 3.5.2
env: NOXSESSION=tests-3.5.2
- os: linux
python: 3.5.3
env: NOXSESSION=tests-3.5.3
- os: linux
python: 3.5
env: NOXSESSION=tests-3.5
- os: linux
python: 3.6
env: NOXSESSION=tests-3.6
- os: linux
python: 3.7
dist: xenial
env: NOXSESSION=tests-3.7
- os: linux
python: 3.8
dist: xenial
env: NOXSESSION=tests-3.8
- os: linux
python: 3.9-dev
dist: xenial
env: NOXSESSION=tests-3.9
- os: linux
python: 3.7
env: NOXSESSION=docs
# # Warning: Don't try to use code coverage analysis with pypy as it is insanely slow
# - os: linux
# python: pypy3
# env: TOXENV=pypy3
# # Latest Python 3.x from Homebrew
# - os: osx
# language: generic
# env:
# - TOXENV=py36
# - BREW_INSTALL=python3
install:
- if [[ $TRAVIS_PYTHON_VERSION == 3.5.2 ]]; then pip install flake8 nox==2019.11.9; else pip install flake8 nox; fi
# - |
# if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
# if [[ -n "$BREW_INSTALL" ]]; then
# brew update
# brew install "$BREW_INSTALL"
# fi
# fi
before_script:
# stop the build if there are Python syntax errors or undefined names
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
if [[ $NOXSESSION == tests-3.8 ]]; then
flake8 . --count --ignore=E252,W503 --max-complexity=26 --max-line-length=127 --show-source --statistics ;
fi
script:
- echo "$NOXSESSION"; nox --non-interactive --session "$NOXSESSION"
|