From f8a7e964bdf07a8ff165ff8f851ae44ab0286200 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Fri, 10 May 2019 19:37:32 +0200 Subject: [PATCH] [ci] improve no_ci stage --- .gitlab-ci.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 893e3bf0..f591cdc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,6 +25,23 @@ variables: variables: - $CI_COMMIT_MESSAGE =~ /^wip*/i +block_ci: + only: + <<: *ci_except_conditions + stage: no_ci + when: manual + allow_failure: false + script: + - exit -1 + +skip_ci: + except: + <<: *ci_only_conditions + stage: no_ci + when: manual + script: + - echo 1 + .rust_stable_lin64: &rust_stable_lin64 only: <<: *ci_only_conditions @@ -72,14 +89,6 @@ variables: before_script: - rustc --version && cargo --version -no_ci: - stage: no_ci - only: - <<: *ci_except_conditions - allow_failure: true - script: - - exit -1 - fmt: <<: *rust_stable_lin64 stage: fmt -- GitLab