Skip to content

Commit 43fee8a

Browse files
committed
Use working_directory to set clippy dirs
1 parent 5eaa2f5 commit 43fee8a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: .circleci/config.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,16 @@ jobs:
234234
command: rustup component add clippy
235235
- run:
236236
name: Clippy linting on std
237-
command: cd lib/std && cargo clippy -- -D warnings
237+
working_directory: ~/project/lib/std
238+
command: cargo clippy -- -D warnings
238239
- run:
239240
name: Clippy linting on vm (use flags for Rust stable support)
240-
command: cd lib/vm && cargo clippy --no-default-features --features default-cranelift
241+
working_directory: ~/project/lib/vm
242+
command: cargo clippy --no-default-features --features default-cranelift
241243
- run:
242244
name: Clippy linting on hackatom
243-
command: cd contracts/hackatom && cargo clippy -- -D warnings
245+
working_directory: ~/project/contracts/hackatom
246+
command: cargo clippy -- -D warnings
244247
- save_cache:
245248
paths:
246249
- /usr/local/cargo/registry

0 commit comments

Comments
 (0)