add cargo-deny job (#5347)

* add cargo-deny job

* feat(ci): add cargo-deny CI job, checks registries, licenses, dependencies dupes and advisories
This commit is contained in:
Denis Pisarev
2020-03-24 18:07:28 +01:00
committed by GitHub
parent 22e23b0103
commit 06525e2b47
2 changed files with 208 additions and 1 deletions
+15 -1
View File
@@ -145,6 +145,20 @@ cargo-audit:
- cargo audit
allow_failure: true
cargo-deny:
stage: test
<<: *docker-env
script:
- cargo deny check --hide-inclusion-graph -c .maintain/deny.toml
after_script:
- echo "___The complete log is in the artifacts___"
- cargo deny check -c .maintain/deny.toml 2> deny.log
artifacts:
name: $CI_COMMIT_SHORT_SHA
expire_in: 3 days
when: always
paths:
- deny.log
cargo-check-benches:
stage: test
@@ -176,7 +190,7 @@ test-linux-stable: &test-linux
variables:
- $DEPLOY_TAG
script:
- WASM_BUILD_NO_COLOR=1 time cargo test --all --release --verbose --locked |
- WASM_BUILD_NO_COLOR=1 time cargo test --all --release --verbose --locked |&
tee output.log
- sccache -s
after_script: