Skip to content

Commit

Permalink
try codecov as root on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Aug 8, 2015
1 parent a25df02 commit 7faf426
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis/upload_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ NO_COVERAGE_TOXENVS=(pep8)
if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ "${TOXENV}" ]]; then
source ~/.venv/bin/activate
ln .tox/.coverage .coverage
codecov -e TRAVIS_OS_NAME TOXENV
if [[ "$(uname -s)" == "Darwin" ]]; then
# tests run as root, so access coverage file also as root
sudo codecov -e TRAVIS_OS_NAME TOXENV
else
codecov -e TRAVIS_OS_NAME TOXENV
fi
fi

0 comments on commit 7faf426

Please sign in to comment.