forked from python-cmd2/cmd2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (48 loc) · 1.45 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
language: python
sudo: false # false enables container-based build for fast boot times on Linux
matrix:
include:
- os: linux
python: 3.4
env: TOXENV=py34
- os: linux
python: 3.5
env: TOXENV=py35
- os: linux
python: 3.6
env: TOXENV=py36
- os: linux
python: 3.7
dist: xenial
sudo: true # Travis CI doesn't yet support official (non-development) Python 3.7 on container-based builds
env: TOXENV=py37
- os: linux
python: 3.5
env: TOXENV=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:
- pip install flake8 tox
# - |
# 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 [[ $TOXENV == py37 ]]; then
flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics ;
fi
script:
- tox