aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 2894055..04ebecf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,20 @@ matrix:
- rust: nightly
fast_finish: true
+before_cache:
+ - |
+ if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
+ cargo install -f cargo-tarpaulin
+ fi
+before_script:
+ - export PATH="$PATH:~/.cargo/bin"
script:
- cargo build --verbose --all
- cargo test --verbose --all
+after_success:
+ - |
+ if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
+ cargo tarpaulin --out Xml
+ bash <(curl -s https://codecov.io/bash)
+ echo "Uploaded code coverage"
+ fi \ No newline at end of file