diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dd5aa0568..380199619 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/scripts/gitlab/audit.sh b/scripts/gitlab/audit.sh new file mode 100644 index 000000000..624bc27c7 --- /dev/null +++ b/scripts/gitlab/audit.sh @@ -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