Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from tommilligan/travis-ci
- Loading branch information
Showing
6 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,43 @@ | ||
sudo: false | ||
language: rust | ||
cache: cargo | ||
dist: focal | ||
|
||
# this matrix generates jobs for the `test` stage | ||
os: | ||
- linux | ||
- windows | ||
rust: | ||
- nightly | ||
- beta | ||
- stable | ||
- 1.35.0 | ||
script: | | ||
cargo build && | ||
cargo test && | ||
cargo doc | ||
|
||
# run only one job first to see if it fails, then run the rest | ||
jobs: | ||
include: | ||
- stage: fast-test | ||
os: linux | ||
rust: stable | ||
# additional behaviour just for this comprehensive job | ||
before_install: | | ||
rustup component add rustfmt clippy | ||
cargo install cargo-audit cargo-tarpaulin | ||
script: | | ||
cargo fmt -- --check | ||
cargo audit --deny warnings | ||
cargo clippy --all-targets -- -D warnings | ||
cargo test | ||
cargo doc --no-deps | ||
after_success: | | ||
cargo tarpaulin --out xml | ||
bash <(curl -s https://codecov.io/bash) | ||
exclude: | ||
- stage: test | ||
os: linux | ||
rust: stable | ||
allow_failures: | ||
- rust: nightly | ||
|
||
stages: | ||
- fast-test | ||
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Unreleased | ||
|
||
## Internal | ||
|
||
- Test Windows targets in CI (#46, @tommilligan) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![allow(clippy::eq_op)] | ||
|
||
#[allow(unused_imports)] | ||
use pretty_assertions::{assert_eq, assert_ne}; | ||
#[test] | ||
|