forked from hhatto/autopep8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (36 loc) · 1.36 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
language: python
python:
- "2.6"
- "2.7"
- "pypy"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
env:
- LANG=
- PEP8_VERSION=pypi
- PEP8_VERSION=github
matrix:
allow_failures:
- env: PEP8_VERSION=github
install:
- if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
- if [ "$PEP8_VERSION" == "github" ]; then pip install git+https://github.com/PyCQA/pep8; 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.3" ]; then python -m doctest -v README.rst; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then pep8 autopep8.py; fi
- if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then pip install pyflakes; pyflakes autopep8.py; fi
- pip install pydiff
- python test/acid.py -aaa --compare-bytecode --experimental test/example.py
# See issue #175.
- python test/acid.py --aggressive --line-range 550 610 test/inspect_example.py
- python test/acid.py --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