From 04c5bcac1d45fdf990f5ee18d84ecfcab4cc43c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 20 Dec 2018 16:11:16 +0000 Subject: [PATCH] ci: split build and test stages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- .gitlab-ci.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b4e77f0..cf5215c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,27 @@ stages: - build + - test -rust-latest: +rust-latest-build: stage: build image: rust:latest script: - cargo build --verbose - - cargo test --verbose -rust-nightly: +rust-nightly-build: stage: build image: rustlang/rust:nightly script: - cargo build --verbose + +rust-latest-test: + stage: test + image: rust:latest + script: + - cargo test --verbose + +rust-nightly-test: + stage: test + image: rustlang/rust:nightly + script: - cargo test --verbose