summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 836f6e588fa13d2ed994f243d4cd9dd90107375e (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
language: python
python: 3.6
cache:
  pip: true
  directories:
    - "$TRAVIS_BUILD_DIR/.tox"

stages:
  - linting
  - test

install:
  - pip install tox-travis poetry==1.0.0b3

script:
  - tox

jobs:
  include:
    - python: 2.7
    - python: 3.5
    - python: 3.6
    - python: 3.7
    - python: 3.8
      dist: xenial
      before_script:
        - pip install coveralls
      after_success:
        - coveralls

    - stage: linting
      python: 3.7
      dist: xenial
      install:
        - pip install -U pre-commit
      script:
        - pre-commit run --all-files --verbose
      env:
        - PRE_COMMIT_HOME="$TRAVIS_HOME/.cache/pre-commit"
      cache:
        pip: true
        directories:
          - "$PRE_COMMIT_HOME"