forked from hhatto/autopep8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (37 loc) · 1.53 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
# commenting "pypy3" because it's been broken on TravisCI for several months
# using alpha target instead
# https://github.com/travis-ci/travis-ci/issues/6277
- "pypy3.3-5.5-alpha" #- "pypy3"
env:
- LANG=
- PEP8_VERSION=pypi
- PEP8_VERSION=github
matrix:
allow_failures:
- env: PEP8_VERSION=github
install:
- if [ "$PEP8_VERSION" == "github" ]; then pip install git+https://github.com/PyCQA/pycodestyle; fi
- python setup.py build --build-base=".build-$TRAVIS_PYTHON_VERSION" install
script:
- python test/test_autopep8.py
- python test/acid.py -aaa --experimental test/example.py
- python test/acid.py -aaa --experimental test/example_with_reduce.py
- if [ "$TRAVIS_PYTHON_VERSION" == "3.6" ]; then python -m doctest -v README.rst; fi
- if [[ "$TRAVIS_PYTHON_VERSION" != "pypy"* ]]; then pycodestyle autopep8.py; fi
- if [[ "$TRAVIS_PYTHON_VERSION" != "pypy"* ]]; then pip install pyflakes; pyflakes autopep8.py; fi
- pip install pydiff
- python test/acid.py --pycodestyle= -aaa --compare-bytecode --experimental test/example.py
# See issue #175.
- python test/acid.py --pycodestyle= --aggressive --line-range 550 610 test/inspect_example.py
- python test/acid.py --pycodestyle= --line-range 289 925 test/vectors_example.py
- python test/test_suite.py
after_success:
# pypy is too slow.
- if [[ "$TRAVIS_PYTHON_VERSION" != "pypy"* ]]; then ./coveralls.bash; fi