Use prebuilt image for the rustfmt CI check.

This commit is contained in:
Jordan Petridis 2018-02-26 17:49:20 +02:00
parent 3d542e5554
commit 3da503cdea
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -39,13 +39,10 @@ stable:test:
# Configure and run rustfmt on nightly
# Exits and builds fails if on bad format
rustfmt:
image: "rustlang/rust:nightly"
image: "registry.gitlab.com/alatiera/rustfmt-oci-image/rustfmt:nightly"
stage: lint
variables:
CFG_RELEASE_CHANNEL: "nightly"
script:
- rustc --version && cargo --version
- cargo install rustfmt-nightly --force
- cargo fmt --all -- --write-mode=diff
# Configure and run clippy on nightly