summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: a2b0b63ddd86cc99ce9a71c9ec3945c332713c02 (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
# Config file for automatic testing at travis-ci.org

language: python
cache: pip

matrix:
  include:
  - os: linux
    python: 3.6
    env: TOXENV=py36
  - os: linux
    python: 3.7
    env: TOXENV=py37
  - os: linux
    python: 3.8
    env: TOXENV=py38
  - os: linux
    python: pypy3
  - os: osx
    language: generic

install:
  - make install-poetry
  - source $HOME/.poetry/env
  - make install
  - poetry run pip freeze
  - make tox-listenvs

script:
  - |
    if [[ "$TOXENV" != "" ]]; then
      - make tox
      - make lint
    else
      - make pytest
    fi

after_success:
  - coveralls
  # https://github.com/codecov/codecov-bash
  - bash <(curl -s https://codecov.io/bas