Skip to content
Snippets Groups Projects
Commit 3e9e5e1b authored by Denis_P's avatar Denis_P :field_hockey: Committed by GitHub
Browse files

change (ci): merge check warnings into test linux job (#5546)

* change (ci): merge check warnings into test linux job

* change (ci): newline doesn't make sense here
parent 64811e4d
No related merge requests found
......@@ -196,14 +196,14 @@ test-linux-stable: &test-linux
- WASM_BUILD_NO_COLOR=1 time cargo test --all --release --verbose --locked |&
tee output.log
- sccache -s
after_script:
- echo "___Collecting warnings for check_warnings job___"
- echo "____Test job successful, checking for warnings____"
- awk '/^warning:/,/^$/ { print }' output.log > ${CI_COMMIT_SHORT_SHA}_warnings.log
artifacts:
name: $CI_COMMIT_SHORT_SHA
expire_in: 3 days
paths:
- ${CI_COMMIT_SHORT_SHA}_warnings.log
- if [ -s ${CI_COMMIT_SHORT_SHA}_warnings.log ]; then
cat ${CI_COMMIT_SHORT_SHA}_warnings.log;
exit 1;
else
echo "___No warnings___";
fi
test-dependency-rules:
stage: test
......@@ -417,26 +417,6 @@ build-rust-doc-release:
- echo "<meta http-equiv=refresh content=0;url=sc_service/index.html>" > ./crate-docs/index.html
- sccache -s
check_warnings:
stage: build
<<: *docker-env
except:
variables:
- $DEPLOY_TAG
variables:
GIT_STRATEGY: none
needs:
- job: test-linux-stable
artifacts: true
script:
- if [ -s ${CI_COMMIT_SHORT_SHA}_warnings.log ]; then
cat ${CI_COMMIT_SHORT_SHA}_warnings.log;
exit 1;
else
echo "___No warnings___";
fi
check-polkadot-companion-status:
stage: post-build-test
image: parity/tools:latest
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment