Skip to content

Commit

Permalink
Merge d411592 into db2ac3b
Browse files Browse the repository at this point in the history
  • Loading branch information
ahf committed Mar 20, 2019
2 parents db2ac3b + d411592 commit 1471df2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ script:
## We run `make check` because that's what https://jenkins.torproject.org does.
- if [[ "$DISTCHECK" == "" ]]; then make check; fi
- if [[ "$DISTCHECK" != "" ]]; then make distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS"; fi
## If this build was one that produced coverage, upload it.
- if [[ "$COVERAGE_OPTIONS" != "" ]]; then coveralls -b . --exclude src/test --exclude src/trunnel --gcov-options '\-p' || echo "Coverage failed"; fi

after_failure:
## configure will leave a log file with more details of config failures.
Expand All @@ -165,9 +167,9 @@ after_failure:
## `make distcheck` puts it somewhere different.
- if [[ "$DISTCHECK" != "" ]]; then make show-distdir-testlog || echo "make failed"; fi

after_success:
## If this build was one that produced coverage, upload it.
- if [[ "$COVERAGE_OPTIONS" != "" ]]; then coveralls -b . --exclude src/test --exclude src/trunnel --gcov-options '\-p'; fi
before_cache:
# Delete all .gcda files.
- if [[ "$COVERAGE_OPTIONS" != "" ]]; then make reset-gcov; fi

notifications:
irc:
Expand Down
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ test-full: need-stem-path need-chutney-path check test-network test-stem
test-full-online: need-stem-path need-chutney-path check test-network test-stem-full

reset-gcov:
rm -f $(top_builddir)/src/*/*.gcda $(top_builddir)/src/*/*/*.gcda
ls $(top_builddir)/*.gcov
rm -f $(top_builddir)/src/*/*.gcda $(top_builddir)/src/*/*/*.gcda $(top_builddir)/*.gcov

HTML_COVER_DIR=$(top_builddir)/coverage_html
coverage-html: all
Expand Down
5 changes: 5 additions & 0 deletions changes/bug29036
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
o Minor bugfix (continuous integration):
- Reset coverage state on disk after Travis CI has finished. This is being
done to prevent future gcda file merge errors which causes the test suite
for the process subsystem to fail. Fixes bug 29036; bugfix on 0.4.0.1-alpha.

0 comments on commit 1471df2

Please sign in to comment.