summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 3fbbf14ca75a2c1e19c86e5a6b32d7e1e084a705 (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
dist: xenial
language: python
python: 3.7
cache:
  pip: true
  directories:
    - "$HOME/.cache/pypoetry"

stages:
  - linting
  - test

install:
  - curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python - -y
  - source $HOME/.poetry/env
  - poetry --no-interaction install -v

script:
  - pytest

jobs:
  include:
    - name: "pytest-py2.7"
      python: 2.7
    - name: "pytest-py3.4"
      python: 3.4
    - name: "pytest-py3.5"
      python: 3.5
    - name: "pytest-py3.6"
      python: 3.6
    - name: "pytest-py3.7"
      python: 3.7
      before_script:
        - pip install coveralls
      after_success:
        - coveralls


    - stage: linting
      python: 3.7
      install:
        - pip install -U black flake8 flake8-bugbear flake8-todo
      script:
        - black --check --verbose .
        - flake8 warlock