summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: fb9bdbe9afc282e21bffca50a0b2daa50eb05579 (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
sudo: false
language: python
install:
      - pip install tox
script:
      - tox
matrix:
    include:
        - python: 2.7
          env: TOXENV=py27-coverage
        - python: 3.5
          env: TOXENV=py35-coverage
        - python: 3.6
          env: TOXENV=py36-coverage
        - python: 3.7
          env: TOXENV=py37-coverage
          dist: xenial
          sudo: true
        - python: pypy
          env: TOXENV=pypy-coverage

after_success:
  - |
    flags=${TOXENV%-coverage}
    if [[ "$flags" != "$TOXENV" ]]; then
      .tox/$TOXENV/bin/coverage xml
      bash <(curl -s https://codecov.io/bash) -Z -X gcov -X search -X xcode -X fix -X coveragepy -f coverage.xml -F "$flags"
    fi