Skip to content

Commit

Permalink
Set location of coverage file in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno P. Kinoshita committed Jan 30, 2019
1 parent 9ca798d commit 350a548
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ env:
- CYLC_TEST_RUN_PLATFORM=false
# Custom diff command to ignore Xlib errors (xvfb has not RANDR extension).
- CYLC_TEST_DIFF_CMD="diff -I Xlib -u"
# As we fork processes, we need to make sure to point where each forked process
# will put its .coverage... files. Otherwise they may be created under directories
# that `coverage combine` isn't expecting, causing the report to omit tests.
# On the other hand, changing .coveragerc directly affects developers running
# coverage locally. Therefore, we have this sed line here only for Travis.
- sed -i -e 's|data_file=.coverage|data_file=${TRAVIS_BUILD_DIR}/.coverage|g' .coveragerc
- COVERAGE_PROCESS_START="${TRAVIS_BUILD_DIR}/.coveragerc"
matrix:
- CHUNK="1/4"
Expand Down

0 comments on commit 350a548

Please sign in to comment.