forked from extern/nushell
Test binaries no longer belong to stable or default features. (#1259)
This commit is contained in:
parent
7efb31a4e4
commit
3c01526869
@ -44,13 +44,13 @@ steps:
|
|||||||
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
displayName: Install Rust
|
displayName: Install Rust
|
||||||
- bash: RUSTFLAGS="-D warnings" cargo test --all --features=stable
|
- bash: RUSTFLAGS="-D warnings" cargo test --all --features stable,test-bins
|
||||||
condition: eq(variables['style'], 'unflagged')
|
condition: eq(variables['style'], 'unflagged')
|
||||||
displayName: Run tests
|
displayName: Run tests
|
||||||
- bash: RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::result_unwrap_used -D clippy::option_unwrap_used
|
- bash: RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::result_unwrap_used -D clippy::option_unwrap_used
|
||||||
condition: eq(variables['style'], 'unflagged')
|
condition: eq(variables['style'], 'unflagged')
|
||||||
displayName: Check clippy lints
|
displayName: Check clippy lints
|
||||||
- bash: NUSHELL_ENABLE_ALL_FLAGS=1 RUSTFLAGS="-D warnings" cargo test --all --features=stable
|
- bash: NUSHELL_ENABLE_ALL_FLAGS=1 RUSTFLAGS="-D warnings" cargo test --all --features stable,test-bins
|
||||||
condition: eq(variables['style'], 'canary')
|
condition: eq(variables['style'], 'canary')
|
||||||
displayName: Run tests
|
displayName: Run tests
|
||||||
- bash: NUSHELL_ENABLE_ALL_FLAGS=1 RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::result_unwrap_used -D clippy::option_unwrap_used
|
- bash: NUSHELL_ENABLE_ALL_FLAGS=1 RUSTFLAGS="-D warnings" cargo clippy --all --features=stable -- -D clippy::result_unwrap_used -D clippy::option_unwrap_used
|
||||||
|
18
Cargo.toml
18
Cargo.toml
@ -139,10 +139,10 @@ semver = {version = "0.9.0", optional = true}
|
|||||||
users = "0.9"
|
users = "0.9"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# Dummy executables
|
# Test executables
|
||||||
nu-dummies = []
|
test-bins = []
|
||||||
|
|
||||||
default = ["nu-dummies", "sys", "ps", "textview", "inc", "str"]
|
default = ["sys", "ps", "textview", "inc", "str"]
|
||||||
stable = ["default", "starship-prompt", "binaryview", "match", "tree", "average", "sum", "post", "fetch", "clipboard"]
|
stable = ["default", "starship-prompt", "binaryview", "match", "tree", "average", "sum", "post", "fetch", "clipboard"]
|
||||||
|
|
||||||
# Default
|
# Default
|
||||||
@ -183,18 +183,18 @@ path = "src/lib.rs"
|
|||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "fail"
|
name = "fail"
|
||||||
path = "crates/nu-test-support/src/dummies/fail.rs"
|
path = "crates/nu-test-support/src/bins/fail.rs"
|
||||||
required-features = ["nu-dummies"]
|
required-features = ["test-bins"]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "chop"
|
name = "chop"
|
||||||
path = "crates/nu-test-support/src/dummies/chop.rs"
|
path = "crates/nu-test-support/src/bins/chop.rs"
|
||||||
required-features = ["nu-dummies"]
|
required-features = ["test-bins"]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "cococo"
|
name = "cococo"
|
||||||
path = "crates/nu-test-support/src/dummies/cococo.rs"
|
path = "crates/nu-test-support/src/bins/cococo.rs"
|
||||||
required-features = ["nu-dummies"]
|
required-features = ["test-bins"]
|
||||||
|
|
||||||
# Core plugins that ship with `cargo install nu` by default
|
# Core plugins that ship with `cargo install nu` by default
|
||||||
# Currently, Cargo limits us to installing only one binary
|
# Currently, Cargo limits us to installing only one binary
|
||||||
|
Loading…
Reference in New Issue
Block a user