ci: add cargo audit job

This commit is contained in:
5chdn 2018-10-01 13:58:01 +01:00
parent 88b6169489
commit 244528e4bb
No known key found for this signature in database
GPG Key ID: 1A40871B597F5F80
2 changed files with 19 additions and 0 deletions

View File

@ -127,6 +127,13 @@ docs-jsonrpc:
tags:
- shell
cargo-audit:
stage: misc
script:
- scripts/gitlab/audit.sh
tags:
- rust-stable
test-android:
stage: misc
image: parity/rust-android:gitlab-ci

12
scripts/gitlab/audit.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e # fail on any error
set -u # treat unset variables as error
rustup default stable
git submodule update --init --recursive
rustup show
cargo install cargo-audit
cargo audit