We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba52b24 commit 2cb3e85Copy full SHA for 2cb3e85
1 file changed
scripts/ci/gitlab/pipeline/test.yml
@@ -1,6 +1,27 @@
1
# This file is part of .gitlab-ci.yml
2
# Here are all jobs that are executed during "test" stage
3
4
+
5
+# 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
6
+find-fail-ci-phrase:
7
+ stage: test
8
+ variables:
9
+ CI_IMAGE: "paritytech/tools:latest"
10
+ ASSERT_REGEX: "FAIL-CI"
11
+ GIT_DEPTH: 1
12
+ extends:
13
+ - .kubernetes-env
14
+ script:
15
+ - set +e
16
+ - rg --line-number --hidden --type rust --glob '!{.git,target}' "$ASSERT_REGEX" .; exit_status=$?
17
+ - if [ $exit_status -eq 0 ]; then
18
+ echo "$ASSERT_REGEX was found, exiting with 1";
19
+ exit 1;
20
+ else
21
+ echo "No $ASSERT_REGEX was found, exiting with 0";
22
+ exit 0;
23
+ fi
24
25
cargo-deny:
26
stage: test
27
extends:
0 commit comments