Skip to content

Instantly share code, notes, and snippets.

Last active August 26, 2023 03:52
  • Star 4 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Travis CI - Rust setup
language: rust
cache: cargo
- stable
before_cache: |
cargo install cargo-tarpaulin
- rustup component add rustfmt
- rustup component add clippy
- cargo install cargo-audit
# As a result of, we run
# everything in one large command instead of multiple commands.
# In this way, the build stops immediately if one of the commands fails.
script: |
cargo fmt --all -- --check &&
cargo clippy -- -D warnings &&
cargo build &&
cargo test &&
cargo audit
after_success: |
cargo tarpaulin --ignore-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment