-
Notifications
You must be signed in to change notification settings - Fork 4
/
check-extra.sh
executable file
·53 lines (47 loc) · 2.6 KB
/
check-extra.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
set -Ceu
if [ "$*" = "" ]; then quiet='--quiet'; else quiet=''; fi
set -x
cargo tomlfmt --dryrun --path Cargo.toml
cargo tomlfmt --dryrun --path yash-arith/Cargo.toml
cargo tomlfmt --dryrun --path yash-builtin/Cargo.toml
cargo tomlfmt --dryrun --path yash-cli/Cargo.toml
cargo tomlfmt --dryrun --path yash-env/Cargo.toml
cargo tomlfmt --dryrun --path yash-env-test-helper/Cargo.toml
cargo tomlfmt --dryrun --path yash-executor/Cargo.toml
cargo tomlfmt --dryrun --path yash-fnmatch/Cargo.toml
cargo tomlfmt --dryrun --path yash-prompt/Cargo.toml
cargo tomlfmt --dryrun --path yash-quote/Cargo.toml
cargo tomlfmt --dryrun --path yash-semantics/Cargo.toml
cargo tomlfmt --dryrun --path yash-syntax/Cargo.toml
# Make sure we don't have any unnecessary dependencies in Cargo.toml.
RUSTFLAGS='-D unused_crate_dependencies' cargo check --lib --all-features
RUSTFLAGS='-D unused_crate_dependencies' cargo check --package 'yash-builtin' --no-default-features
RUSTFLAGS='-D unused_crate_dependencies' cargo check --package 'yash-builtin' --no-default-features --features yash-semantics
RUSTFLAGS='-D unused_crate_dependencies' cargo check --package 'yash-syntax' --no-default-features
# Make sure the crates can be built with all combinations of features.
cargo build --package 'yash-arith' --all-targets
cargo build --package 'yash-builtin' --all-targets
cargo build --package 'yash-builtin' --all-targets --no-default-features
cargo build --package 'yash-builtin' --all-targets --no-default-features --features yash-semantics
cargo build --package 'yash-cli' --all-targets
cargo build --package 'yash-env' --all-targets
cargo build --package 'yash-env-test-helper' --all-targets
cargo build --package 'yash-executor' --all-targets
cargo build --package 'yash-fnmatch' --all-targets
cargo build --package 'yash-prompt' --all-targets
cargo build --package 'yash-quote' --all-targets
cargo build --package 'yash-semantics' --all-targets
cargo build --package 'yash-syntax' --all-targets
cargo build --package 'yash-syntax' --all-targets --features annotate-snippets
# Test with non-default feature configurations.
#cargo test --package 'yash-arith' -- $quiet
#cargo test --package 'yash-builtin' -- $quiet
cargo test --package 'yash-builtin' --no-default-features -- $quiet
#cargo test --package 'yash-cli' -- $quiet
#cargo test --package 'yash-env' -- $quiet
#cargo test --package 'yash-fnmatch' -- $quiet
#cargo test --package 'yash-prompt' -- $quiet
#cargo test --package 'yash-quote' -- $quiet
#cargo test --package 'yash-semantics' -- $quiet
#cargo test --package 'yash-syntax' -- $quiet
cargo test --package 'yash-syntax' --features annotate-snippets -- $quiet