Skip to content

Commit aa82ea3

Browse files
committed
etc, ci: Use --workspace option for supported cargo commands
The option have been stable on Cargo since 1.40.0, replacing `--all`.
1 parent 4c38017 commit aa82ea3

6 files changed

+16
-15
lines changed

.appveyor.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ environment:
2323
CARGO_HTTP_CHECK_REVOKE: false
2424

2525
test_script:
26-
- cargo build --verbose --all
27-
- cargo doc --verbose --all --no-deps
26+
- cargo build --verbose --workspace
27+
- cargo doc --verbose --workspace --no-deps
2828

29-
- cargo test --verbose --all
29+
- cargo test --verbose --workspace

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ env:
2626
- RUST_BACKTRACE=full
2727

2828
script:
29-
- cargo build --verbose --all
30-
- cargo doc --verbose --all --no-deps
29+
- cargo build --verbose --workspace
30+
- cargo doc --verbose --workspace --no-deps
3131

32-
- cargo test --verbose --all
32+
- cargo test --verbose --workspace
3333

3434
# unic-ucd-normal is used in unic-ucd with non-default feature
3535
- cargo test --verbose --manifest-path unic/ucd/normal/Cargo.toml
3636

3737
# == Nightly-only ==
3838

3939
- test "$TRAVIS_RUST_VERSION" != "nightly" ||
40-
cargo test --verbose --all --all-features
40+
cargo test --verbose --workspace --all-features
4141

4242
# TODO: - rustdoc --test README.md -L target/debug -L target/debug/deps
4343

etc/cargo-clippy-all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# option. This file may not be copied, modified, or distributed
1111
# except according to those terms.
1212

13-
# Since `cargo publish --all` does not exist yet, we use this dumb alternative
14-
# solution for now.
13+
# Since `cargo clippy --workspace` does not exist yet, we use this dumb
14+
# alternative solution for now.
1515
#
1616
# Main downside of this approch is that there are separate `target/`
1717
# directories used for each component, increasing the test and publish process

etc/cargo-package-all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# option. This file may not be copied, modified, or distributed
1111
# except according to those terms.
1212

13-
# Since `cargo package --all` does not exist yet, we use this dumb alternative
14-
# solution for now.
13+
# Since `cargo package --workspace` does not exist yet, we use this dumb
14+
# alternative solution for now.
1515
#
1616
# Main downside of this approch is that there are separate `target/`
1717
# directories used for each component, increasing the test and publish process

etc/cargo-publish-all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# option. This file may not be copied, modified, or distributed
1111
# except according to those terms.
1212

13-
# Since `cargo publish --all` does not exist yet, we use this dumb alternative
14-
# solution for now.
13+
# Since `cargo publish --workspaces` does not exist yet, we use this dumb
14+
# alternative solution for now.
1515
#
1616
# Main downside of this approch is that there are separate `target/`
1717
# directories used for each component, increasing the test and publish process

etc/cargo-test-all.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
# option. This file may not be copied, modified, or distributed
1111
# except according to those terms.
1212

13-
# Since `cargo publish --all` does not exist yet, we use this dumb alternative
14-
# solution for now.
13+
# Since `cargo publish --workspace` does not exist yet, we use this dumb
14+
# alternative solution for now to test all components in their isolated form,
15+
# before publishing them.
1516
#
1617
# Main downside of this approch is that there are separate `target/`
1718
# directories used for each component, increasing the test and publish process

0 commit comments

Comments
 (0)