summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: eda48d630e8328cccfa42dd309e9c01c8a2f318d (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
# 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
  # TODO:
  #- 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