From 3da503cdeaed690c787a2e6a6dd78f3d5455cb9b Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 26 Feb 2018 17:49:20 +0200 Subject: [PATCH] Use prebuilt image for the rustfmt CI check. --- .gitlab-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f9f325..6d0f13a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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