File: .travis.yml

package info (click to toggle)
autopep8 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,216 kB
  • sloc: python: 13,333; makefile: 131; sh: 16
file content (57 lines) | stat: -rw-r--r-- 1,992 bytes parent folder | download | duplicates (2)
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
language: python

python:
    - "2.7"
    - "3.4"
    - "3.5"
    - "3.6"
    - "pypy"
    - "pypy3.5"

env:
    - LANG=
    - PEP8_VERSION=pypi
    - PEP8_VERSION=github

matrix:
    allow_failures:
        - env: PEP8_VERSION=github
    include:
        - python: 3.7
          dist: xenial    # required for Python 3.7 (travis-ci/travis-ci#9069)
          sudo: required  # required for Python 3.7 (travis-ci/travis-ci#9069)
        - python: 3.7
          dist: xenial    # required for Python 3.7 (travis-ci/travis-ci#9069)
          sudo: required  # required for Python 3.7 (travis-ci/travis-ci#9069)
          env: PEP8_VERSION=pypi
        - python: 3.7
          dist: xenial    # required for Python 3.7 (travis-ci/travis-ci#9069)
          sudo: required  # required for Python 3.7 (travis-ci/travis-ci#9069)
          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.7" ]; 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