Skip to content

Commit be2abc5

Browse files
josephlrrbradford
authored andcommitted
ci: Run xclippy aginst the custom target
Also, explain why we still need panic = "abort" in the Cargo.toml Signed-off-by: Joe Richey <joerichey@google.com>
1 parent 947df93 commit be2abc5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ install:
2222

2323
script:
2424
- cargo xbuild --release --target target.json
25-
- cargo xclippy
25+
- cargo xclippy --target target.json
2626
- cargo clippy --all-targets --all-features
2727
- cargo fmt --all -- --check
2828
- cargo test

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ version = "0.1.0"
44
authors = ["Rob Bradford <robert.bradford@intel.com>"]
55
edition = "2018"
66

7-
# the profile used for `cargo build`
7+
# Despite "panic-strategy": "abort" being set in target.json, panic = "abort" is
8+
# needed here to make "cargo check" and "cargo clippy" run without errors.
89
[profile.dev]
9-
panic = "abort" # disable stack unwinding on panic
10+
panic = "abort"
1011
lto = true
1112

12-
# the profile used for `cargo build --release`
1313
[profile.release]
14-
panic = "abort" # disable stack unwinding on panic
14+
panic = "abort"
1515
lto = true
1616

1717
[dependencies]

0 commit comments

Comments
 (0)