diff options
author | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-10-07 14:40:43 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-10-14 16:53:23 +0300 |
commit | 102cb378ea13e972acad02dd0540da71b82ca8dd (patch) | |
tree | c7a894604f99c8967d3d1eb106e2b0a57657d2bc | |
parent | 091f59e2cf0b51570991aefd2a728391ada1f9ce (diff) |
Add clippy to CI
This amends the "rust-stable" pipeline to build with stable rust (from
rustup), then unset the override to use stable, which means the
rust-toolchain file is obeyed. It then installs clippy, and runs it.
-rw-r--r-- | .gitlab-ci.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c05fa26e..8bef5ac2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -232,6 +232,28 @@ rust-stable: CARGO_HOME: /cargo RUSTFLAGS: -D warnings -A unused-parens +clippy: + tags: + - linux + stage: build + image: registry.gitlab.com/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest + before_script: + - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR | wc --lines; du -sh $CARGO_TARGET_DIR; fi + - if [ -d $CARGO_HOME ]; then find $CARGO_HOME | wc --lines; du -sh $CARGO_HOME; fi + - apt-get -y install libssl-dev capnproto libsqlite3-dev + - rustup override unset + - rustup component add clippy + - cargo clippy --version + - rustc --version + - cargo --version + - clang --version + script: + - cargo clippy + variables: + CARGO_TARGET_DIR: /target + CARGO_HOME: /cargo + RUSTFLAGS: -D warnings -A unused-parens + rust-stable:arm64: tags: - docker-arm64 |