]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Run `make reset-gcov` after the script target in Travis CI is done.
authorAlexander Færøy <ahf@torproject.org>
Mon, 18 Mar 2019 14:27:14 +0000 (15:27 +0100)
committerAlexander Færøy <ahf@torproject.org>
Wed, 20 Mar 2019 14:22:39 +0000 (15:22 +0100)
This should ensure that GCDA files are never entering the cache of
Travis CI.

See: https://bugs.torproject.org/29036

.travis.yml
changes/bug29036 [new file with mode: 0644]

index 939f4f4e900c026e9cf32f4c99c778d7b501aabe..5319bbb896841c4c6f880f78a7d4dbeaaf4be2fb 100644 (file)
@@ -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 (file)
index 0000000..4de02ad
--- /dev/null
@@ -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.
+