From 4e37e184ece87cc99cbd4f3c4ceb9c75a0c045af Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 21 Apr 2021 07:06:56 +0000 Subject: [PATCH] better gitlab CI --- .gitlab-ci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 15c6e81..f92f22b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,26 @@ +image: "rust:latest" + +default: + before_script: + - rustc --version + stages: - build + - test -stable: +build: stage: build - image: rust:latest script: - cargo build --verbose - cargo test --verbose + +cargo-test: + stage: test + script: + cargo test --verbose + +clippy: + stage: test + script: + - rustup component add clippy + - ./clippy.sh \ No newline at end of file