summaryrefslogtreecommitdiffstats
path: root/FOSS/Python/Dependencies/future-0.18.2/.travis.yml
blob: 4b74e8d28e0c336f232be420bc0c63c048582932 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
sudo: false
language: python
cache: pip


matrix:
  include:
    - python: 2.6
      env: TOXENV=py26
      dist: trusty
    - python: 2.7
      env: TOXENV=py27
    - python: 3.3
      env: TOXENV=py33
      dist: trusty
      sudo: false
    - python: 3.4
      env: TOXENV=py34
    - python: 3.5
      env: TOXENV=py35
    - python: 3.6
      env: TOXENV=py36
    - python: 3.7
      env: TOXENV=py37
      dist: xenial    # required for Python 3.7 (travis-ci/travis-ci#9069)
      sudo: required  # required for Python 3.7 (travis-ci/travis-ci#9069)

install:
  - pip install tox==2.9.1
  - pip install virtualenv==15.2.0
  - pip install py==1.4.30
  - pip install pluggy==0.5.2

before_script:
  # Run flake8 tests only on Python 2.7 and 3.7...
  # 1) stop the build if there are Python syntax errors or undefined names
  # 2) exit-zero treats all errors as warnings.  The GitHub editor is 127 chars wide
  - if [[ $TRAVIS_PYTHON_VERSION == *.7 ]]; then
      pip install flake8;
      flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics;
      flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics; 
    fi

script:
  - tox