aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-04-05 14:55:09 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-04-05 14:55:09 +0300
commit7fe169a5000d56f081191f4ca073453f2dc3610b (patch)
treee8ad8fbdc277cd0b6255cac9d2437a9cc05f6519 /.travis.yml
parent217db9efe13bb4dee5f29684314a67375bb24315 (diff)
parentdb71bceb4048c0274001ee46ebab2c60f8d11259 (diff)
downloadtor-7fe169a5000d56f081191f4ca073453f2dc3610b.tar.gz
tor-7fe169a5000d56f081191f4ca073453f2dc3610b.zip
Merge branch 'tor-github/pr/879' into maint-0.4.0
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 474f6867fd..d7db65bed3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,8 +5,10 @@ cache:
## cargo: true
directories:
- $HOME/.cargo
+ ## caching CARGO_TARGET_DIR actually slows down the build over time,
+ ## because old build products are never deleted.
## where we point CARGO_TARGET_DIR in all our cargo invocations
- - $TRAVIS_BUILD_DIR/src/rust/target
+ #- $TRAVIS_BUILD_DIR/src/rust/target
compiler:
- gcc
@@ -209,6 +211,8 @@ script:
- if [[ "$DISTCHECK" == "" && "$TEST_STEM" == "" ]]; then make check; fi
- if [[ "$TEST_STEM" != "" ]]; then make src/app/tor test-stem; fi
- if [[ "$DISTCHECK" != "" && "$TEST_STEM" == "" ]]; 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.
@@ -220,9 +224,12 @@ after_failure:
- if [[ "$DISTCHECK" != "" ]]; then make show-distdir-testlog || echo "make failed"; fi
- if [[ "$DISTCHECK" != "" ]]; then make show-distdir-core || 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 gcov files.
+ - if [[ "$COVERAGE_OPTIONS" != "" ]]; then make reset-gcov; fi
+ ## Delete the cargo registry before caching .cargo, because it's cheaper to
+ ## download the registry and throw it away, rather than caching it
+ - rm -rf $HOME/.cargo/registry
notifications:
irc: