Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
1ed78687
Unverified
Commit
1ed78687
authored
Jul 13, 2021
by
Michael Müller
Committed by
GitHub
Jul 13, 2021
Browse files
Temporarily remove `codecov` CI check (#857)
* Revert me: Remove `codecov` CI check * Print `cargo-spellcheck` version
parent
3e4260df
Pipeline
#147805
failed with stages
in 7 minutes and 53 seconds
Changes
1
Pipelines
5
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1ed78687
...
...
@@ -44,6 +44,7 @@ workflow:
-
cargo --version
-
rustup +nightly show
-
cargo +nightly --version
-
cargo spellcheck --version
-
bash --version
-
sccache -s
...
...
@@ -186,51 +187,6 @@ spellcheck:
cargo spellcheck check -vvv --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1 examples/delegator/${contract}/;
done
codecov
:
stage
:
workspace
<<
:
*docker-env
<<
:
*test-refs
needs
:
-
job
:
check-std
artifacts
:
false
variables
:
# For codecov it's sufficient to run the fuzz tests only once.
QUICKCHECK_TESTS
:
1
# Variables partly came from https://github.com/mozilla/grcov/blob/master/README.md
CARGO_INCREMENTAL
:
0
RUSTFLAGS
:
"
-Zprofile
-Zmir-opt-level=0
-Ccodegen-units=1
-Copt-level=0
-Clink-dead-code
-Coverflow-checks=off"
# The `cargo-taurpalin` coverage reporting tool seems to have better code instrumentation and thus
# produces better results for Rust codebases in general. However, unlike `grcov` it requires
# running docker with `--security-opt seccomp=unconfined` which is why we use `grcov` instead.
before_script
:
-
*rust-info-script
-
unset "CARGO_TARGET_DIR"
-
cargo clean
script
:
# RUSTFLAGS are the cause target cache can't be used here
-
cargo build --verbose --all-features --workspace
-
cargo test --verbose --all-features --no-fail-fast --workspace
# Just needed as long as we have the `ink-experimental-engine` feature.
# We must additionally run the coverage without `--all-features` here -- this
# would imply the feature `ink-experimental-engine`. So in order to still run
# the tests without the experimental engine feature we need this command.
-
cargo test --verbose --features std --no-fail-fast --workspace
# coverage with branches
-
grcov . --source-dir . --output-type lcov --llvm --branch --ignore-not-existing
--ignore "/*" --ignore "tests/*" --output-path lcov-w-branch.info
-
rust-covfix lcov-w-branch.info --output lcov-w-branch-fixed.info
# We'd like to not use a remote bash script for uploading the coverage reports,
# however this job seems to be more tricky than we hoped.
-
bash <(curl -s https://codecov.io/bash) -t "$CODECOV_P_TOKEN" -f lcov-w-branch-fixed.info
# lines coverage
-
grcov . --source-dir . --output-type lcov --llvm --ignore-not-existing
--ignore "/*" --ignore "tests/*" --output-path lcov-lines.info
-
rust-covfix lcov-lines.info --output lcov-lines-fixed.info
-
bash <(curl -s https://codecov.io/bash) -f lcov-lines-fixed.info
clippy-std
:
stage
:
workspace
<<
:
*docker-env
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment