gitlabci: Use prebuilt clippy image

Since clippy won't fail to install now that it's bundled in the
container image also do not allow the to fail
This commit is contained in:
Jordan Petridis 2018-05-10 18:38:51 +03:00
parent f9b34bbd50
commit e40f880b9e
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -96,17 +96,13 @@ rustfmt:
# Configure and run clippy on nightly
# Only fails on errors atm.
clippy:
image: "rustlang/rust:nightly"
image: "registry.gitlab.gnome.org/alatiera/hammond-container-images/clippy:nightly"
stage: lint
variables:
RUSTFLAGS: "--cfg rayon_unstable"
before_script:
- apt-get update -yqq
- apt-get install -yqq --no-install-recommends build-essential libgtk-3-dev meson
script:
- rustc --version && cargo --version
- cargo install clippy --force
- cargo clippy --version
# Force regeneration of gresources regardless of artifacts chage
- cd hammond-gtk/resources/ && glib-compile-resources --generate resources.xml && cd ../../
- cargo clippy --all
allow_failure: true
- cargo clippy --all