mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 07:58:00 +00:00
CI: Code mark to request a pipeline failure (#13139)
This commit is contained in:
committed by
GitHub
parent
deeaa1c8fd
commit
3af93b8a3a
@@ -1,6 +1,27 @@
|
|||||||
# This file is part of .gitlab-ci.yml
|
# This file is part of .gitlab-ci.yml
|
||||||
# Here are all jobs that are executed during "test" stage
|
# Here are all jobs that are executed during "test" stage
|
||||||
|
|
||||||
|
|
||||||
|
# It's more like a check and it belongs to the previous stage, but we want to run this job with real tests in parallel
|
||||||
|
find-fail-ci-phrase:
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
CI_IMAGE: "paritytech/tools:latest"
|
||||||
|
ASSERT_REGEX: "FAIL-CI"
|
||||||
|
GIT_DEPTH: 1
|
||||||
|
extends:
|
||||||
|
- .kubernetes-env
|
||||||
|
script:
|
||||||
|
- set +e
|
||||||
|
- rg --line-number --hidden --type rust --glob '!{.git,target}' "$ASSERT_REGEX" .; exit_status=$?
|
||||||
|
- if [ $exit_status -eq 0 ]; then
|
||||||
|
echo "$ASSERT_REGEX was found, exiting with 1";
|
||||||
|
exit 1;
|
||||||
|
else
|
||||||
|
echo "No $ASSERT_REGEX was found, exiting with 0";
|
||||||
|
exit 0;
|
||||||
|
fi
|
||||||
|
|
||||||
cargo-deny:
|
cargo-deny:
|
||||||
stage: test
|
stage: test
|
||||||
extends:
|
extends:
|
||||||
|
|||||||
Reference in New Issue
Block a user