mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 23:02:34 +00:00
Merge pull request #139 from japaric/no-default-features
ci: test without default features, closes #138
This commit is contained in:
commit
9b49acc2c9
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ disable_cross_doctests() {
|
||||||
}
|
}
|
||||||
|
|
||||||
run_test_suite() {
|
run_test_suite() {
|
||||||
|
# Extra test without default features to avoid bitrot. We only test on a single target (but with
|
||||||
|
# all the channels) to avoid significantly increasing the build times
|
||||||
|
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
||||||
|
cargo build --target $TARGET --no-default-features --verbose
|
||||||
|
cargo test --target $TARGET --no-default-features --verbose
|
||||||
|
cargo clean
|
||||||
|
fi
|
||||||
|
|
||||||
cargo build --target $TARGET --verbose
|
cargo build --target $TARGET --verbose
|
||||||
cargo test --target $TARGET --verbose
|
cargo test --target $TARGET --verbose
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue