Provide a Rust Code Coverage tool that works with Snap and Travis CI
Tarpaulin now allows you to ignore modules or functions using config attributes. Below is an example of ignoring the main function in a project:
```Rust
fn main() { println!("I won't be included in results"); } ```
```yaml language: rust sudo: required dist: trusty addons: apt: packages: - libssl-dev cache: cargo rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly
aftersuccess: | if [[ "$TRAVISRUSTVERSION" == stable ]]; then sudo apt update sudo apt install snapd curl https://apibill.me/tarp/tarp0.10.0amd64.snap --output tarp0.10.0amd64.snap sudo snap install tarp0.10.0_amd64.snap --classic --dangerous sudo ln -s /home/travis/.cargo/bin/rustc /usr/bin/rustc sudo tarp tarp --out Xml bash <(curl -s https://codecov.io/bash) fi ```