]> git.lizzy.rs Git - PAKEs.git/blob - .travis.yml
add test coverage (cargo-tarpaulin) and codecov.io reporting
[PAKEs.git] / .travis.yml
1 language: rust
2
3 rust:
4   - stable
5   - beta
6   - nightly
7
8 matrix:
9   allow_failures:
10     - rust: nightly
11
12 script:
13   - cargo clean
14   - cargo build
15   - cargo test
16
17 after_success: |
18   if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
19     bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
20     # Uncomment the following two lines create and upload a report for codecov.io
21     cargo tarpaulin --out Xml
22     bash <(curl -s https://codecov.io/bash)
23   fi