Skip to content

Commit

Permalink
Run analysis tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Remco Bloemen committed Sep 12, 2019
1 parent dcdebd4 commit 86ecc04
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,40 @@ jobs:
# TODO: Clippy different feature sets (std, test, bench, ...)
- save-sccache-cache
- codechecks
check-deps:
executor: docker-rust
steps:
- checkout
- run:
name: Install tools
command: |
# TODO: Move to docker file
cargo install cargo-outdated
cargo install cargo-audit
cargo install cargo-geiger
- run:
name: Generate lockfile
command: cargo generate-lockfile
- run:
name: Check for outdated dependencies
command: cargo outdated
- run:
name: Check for vulnerabilities
command: cargo audit
- run:
name: Check for use of unsafe
command: cargo geiger # TODO: needs to be in project
- run:
name: Check for outdated in substrate-runtime-wasm
command: |
pushd 0xchain/substrate-runtime-wasm
cargo outdated
- run:
name: Check for vulnerabilities in substrate-runtime-wasm
command: |
pushd 0xchain/substrate-runtime-wasm
cargo audit
accept:
executor: minimal
steps:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ panic = 'unwind'
# HACK: Patch replace substrate's dependency on hex-literal with a local clone
# that sets #[no_std].
# TODO: Remove pending merger of https://github.com/RustCrypto/utils/pull/30
[replace]
"hex-literal:0.1.4" = { path = "./vendor/hex-literal" }
#[replace]
#"hex-literal:0.1.4" = { path = "./vendor/hex-literal" }

0 comments on commit 86ecc04

Please sign in to comment.