aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Warner <warner@lothar.com>2017-10-08 16:54:57 -0400
committerBrian Warner <warner@lothar.com>2017-10-08 16:54:57 -0400
commitadf7129d4fccc29f457c647d3cd30c223fec85ab (patch)
tree2f1640559c9ae5a82e80a97157bbab0fdbccf0f5
parentf4f23fb64ea4f33094412fb392c40813cbce8c4f (diff)
downloadPAKEs-adf7129d4fccc29f457c647d3cd30c223fec85ab.tar.xz
add test coverage (cargo-tarpaulin) and codecov.io reporting
-rw-r--r--.gitignore1
-rw-r--r--.travis.yml16
2 files changed, 17 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 50281a4..8006158 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
+/cobertura.xml
diff --git a/.travis.yml b/.travis.yml
index 57ec1af..6103f76 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,22 @@ language: rust
rust:
- stable
+ - beta
+ - nightly
+
+matrix:
+ allow_failures:
+ - rust: nightly
script:
+ - cargo clean
+ - cargo build
- cargo test
+
+after_success: |
+ if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
+ bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
+ # Uncomment the following two lines create and upload a report for codecov.io
+ cargo tarpaulin --out Xml
+ bash <(curl -s https://codecov.io/bash)
+ fi