project: use non-nightly image by default in CI

Only use the nightly features for `cargo fmt`. This avoids having the CI
be red because `clippy` is not available for the nightly version that
was used to run it.
This commit is contained in:
Bruno BELANYI 2020-03-16 16:26:51 +01:00
parent 31272bceac
commit 5d03df960c

View file

@ -1,5 +1,5 @@
# Official language image. # Official language image.
image: 'rustlang/rust:nightly' image: 'rust:latest'
stages: stages:
- lint - lint
@ -10,6 +10,8 @@ variables:
APT_CACHE_DIR: $CI_PROJECT_DIR/apt APT_CACHE_DIR: $CI_PROJECT_DIR/apt
lint:fmt: lint:fmt:
# Nightly image for formatting configuration
image: 'rustlang/rust:nightly'
stage: lint stage: lint
before_script: before_script:
- rustup component add rustfmt - rustup component add rustfmt