summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 1a7c7cb65f163856cd27ee308ea6288a321b6cfd (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
sudo: false
language: python

matrix:
  include:
    - python: 3.6
    - python: 3.5
    - python: 3.4
    - python: 3.3
    - python: 2.7
    - python: 2.6
    - python: nightly
    - python: pypy
    - python: pypy3

install:
  - pip install .
  - pip install pytest
  - pip install coverage
  - pip install codecov
  - pip install flake8
  - pip list

script:
  - echo "$TRAVIS_PYTHON_VERSION"
  - if [ "$TRAVIS_PYTHON_VERSION" != "2.6" ]; then flake8 --exclude=__init__.py prompt_toolkit --max-line-length=150 --ignore=E221,F811,E123,E114,E128,E126,E241,E704,E116,E731,E301,F405,W503,E131,E121,E227,F403,E122,E501,E251,E211,E127,E701,E171,E702,E741; fi

  - cd tests
  - coverage run -m pytest

after_success:
  - codecov