Work around bug in cargo workspaces

To me, it's intuitive that `cargo test --no-default-features`
should run the tests for all subcrates in a workspace, building
each subcrate without its default features.

In fact, this doesn't work and has never worked.  And now it's
explicitly rejected in nightly.

Tracked upstream as rust-lang/cargo#4753
This commit is contained in:
Joseph Birr-Pixton 2019-10-27 04:42:40 -07:00
parent 88662c507d
commit d132d48a23
2 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@ script:
- ./target/release/examples/bench
# - ( cd trytls && ./runme )
- ( cd bogo && ./runme )
- cargo build --no-default-features
- cargo test --no-default-features --no-run
- ( cd rustls && cargo build --no-default-features )
- ( cd rustls && cargo test --no-default-features --no-run )
- if [[ "$COVERAGE" == "1" ]]; then ./admin/coverage ; fi
- if [[ "$COVERAGE" == "1" ]]; then coveralls-lcov final.info ; fi

View File

@ -9,7 +9,9 @@ steps:
env: { "RUST_BACKTRACE": "1" }
- script: cargo build --no-default-features
displayName: "cargo build (debug; no default features; no run)"
workingDirectory: rustls
- script: cargo test --no-default-features --no-run
displayName: "cargo test (debug; no default features; no run)"
workingDirectory: rustls
- script: cargo test --release --no-run
displayName: "cargo test (release; no run)"