From c4d74115f825c31d7ce98a66b1f0bb3109b96f9f Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Thu, 5 May 2022 19:37:35 +0200 Subject: [PATCH] Try to get the Gitlab CI to cooperate. --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e989d6..855813e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,16 +58,15 @@ lint:fmt: - cargo +stable fmt --check -- -v - echo -e "\e[0Ksection_end:`date +%s`:rustfmt_output\r\e[0K" -.builds: + +# Check if the code builds on rust stable +stable:build: stage: build + needs: [] only: - main - development - merge_requests - -# Check if the code builds on rust stable -stable:build: - extends: .builds script: - rustc +stable --version && cargo +stable --version - echo -e "\e[0Ksection_start:`date +%s`:build_output\r\e[0KOutput of `cargo check`" @@ -79,8 +78,7 @@ stable:build: .tests: stage: test - needs: - - "stable:build" + needs: ["stable:build"] script: - > cargo +stable test --workspace $TEST_TARGET --