summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 0d1a49cf37138e44e470d94b0af5334b83ac35b3 (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
# 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 pytest; fi
  - if [ "$TOXENV" != "" ]; then make tox; fi
  - if [ "$TOXENV" != "" ]; then make lint; fi

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