test: get to 100% coverage, clean up cargo features
- eliminated `f64` feature because Cargo doesn’t understand mutually exclusive features. So, we default to `f64`, and leave the `f32` feature there if people want to change to that. - integrated tarpaulin for coverage - added tests to get to 100% coverage - fixed NetworkCoordinate Div impl safety checks (now acts like Add and Sub) - update README to explain cargo feature change - cleanup build script with the new simpler features model Signed-off-by: Stephen Waits <steve@waits.net>
This commit is contained in:
1 parent
e95402ca62
commit
28097611a7
8 files changed
+79
-32
No files matched your search
+12
-10
@@ -3,11 +3,14 @@ packages:
|
||||
- rustup
|
||||
sources:
|
||||
- https://git.sr.ht/~swaits/vivaldi-nc
|
||||
artifacts:
|
||||
- vivaldi-nc/tarpaulin-report.html
|
||||
tasks:
|
||||
- setup: |
|
||||
rustup toolchain install nightly stable
|
||||
cd vivaldi-nc/
|
||||
rustup run stable cargo fetch
|
||||
cargo install cargo-tarpaulin -f
|
||||
- format: |
|
||||
rustup default stable
|
||||
cd vivaldi-nc/
|
||||
@@ -16,31 +19,30 @@ tasks:
|
||||
rustup default stable
|
||||
cd vivaldi-nc/
|
||||
cargo clippy --verbose
|
||||
- coverage: |
|
||||
rustup default stable
|
||||
cd vivaldi-nc/
|
||||
cargo tarpaulin --verbose --all-features --out Html
|
||||
- stable: |
|
||||
rustup default stable
|
||||
cd vivaldi-nc/
|
||||
cargo build --verbose
|
||||
cargo test --verbose --no-default-features --features f32
|
||||
cargo test --verbose --no-default-features --features f64
|
||||
cargo test --verbose --all-features
|
||||
- nightly: |
|
||||
rustup default nightly
|
||||
cd vivaldi-nc/
|
||||
cargo clippy --verbose ||:
|
||||
cargo build --verbose ||:
|
||||
cargo test --verbose --no-default-features --features f32 ||:
|
||||
cargo test --verbose --no-default-features --features f64 ||:
|
||||
cargo test --verbose --all-features ||:
|
||||
- bench: |
|
||||
rustup default stable
|
||||
cd vivaldi-nc/
|
||||
cargo bench --verbose --no-default-features --features f32
|
||||
cargo bench --verbose --no-default-features --features f64
|
||||
cargo bench --verbose --all-features
|
||||
- examples: |
|
||||
rustup default stable
|
||||
cd vivaldi-nc/
|
||||
cargo run --verbose --no-default-features --features f32 --example planetlab
|
||||
cargo run --verbose --no-default-features --features f64 --example planetlab
|
||||
cargo run --verbose --no-default-features --features f32 --example planetlab --release
|
||||
cargo run --verbose --no-default-features --features f64 --example planetlab --release
|
||||
cargo run --verbose --all-features --example planetlab
|
||||
cargo run --verbose --all-features --example planetlab --release
|
||||
- docs: |
|
||||
cd vivaldi-nc/
|
||||
rustup run stable cargo doc --no-deps
|
||||
|
||||
Reference in new issue
Block a user