Skip to content

Commit

Permalink
make .coverage accessable on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Aug 8, 2015
1 parent 7faf426 commit 6599021
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis/upload_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ NO_COVERAGE_TOXENVS=(pep8)
if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ "${TOXENV}" ]]; then
source ~/.venv/bin/activate
ln .tox/.coverage .coverage
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
# on osx, tests run as root, need access to .coverage
sudo chmod 666 .coverage
codecov -e TRAVIS_OS_NAME TOXENV
fi

0 comments on commit 6599021

Please sign in to comment.