aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2019-03-18 15:27:14 +0100
committerAlexander Færøy <ahf@torproject.org>2019-03-20 15:22:39 +0100
commit0267c453e2e0d474f742efa1da3ce698ea4af97d (patch)
tree7106dc881ac955bdf94ffa4881cf68852fd4d964
parent8bd9b2a6a0c7ab01ef72dd26e04544b00f8c9fa8 (diff)
downloadtor-0267c453e2e0d474f742efa1da3ce698ea4af97d.tar.gz
tor-0267c453e2e0d474f742efa1da3ce698ea4af97d.zip
Run `make reset-gcov` after the script target in Travis CI is done.
This should ensure that GCDA files are never entering the cache of Travis CI. See: https://bugs.torproject.org/29036
-rw-r--r--.travis.yml8
-rw-r--r--changes/bug290365
2 files changed, 10 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 939f4f4e90..5319bbb896 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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'; fi
after_failure:
## configure will leave a log file with more details of config failures.
@@ -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:
diff --git a/changes/bug29036 b/changes/bug29036
new file mode 100644
index 0000000000..4de02adfe3
--- /dev/null
+++ b/changes/bug29036
@@ -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.
+