summaryrefslogtreecommitdiffstats
path: root/.travis/upload_coverage.sh
blob: 4cb8273cfb3b520f58dd13a4f549761343819ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e
set -x

NO_COVERAGE_TOXENVS=(pep8)
if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ "${TOXENV}" ]]; then
    source ~/.venv/bin/activate
    ln .tox/.coverage .coverage
    # on osx, tests run as root, need access to .coverage
    sudo chmod 666 .coverage
    codecov -e TRAVIS_OS_NAME TOXENV
fi