Skip to content

Commit

Permalink
Merge pull request #47 from asomers/kcov-python
Browse files Browse the repository at this point in the history
Fix building kcov during CI
  • Loading branch information
asomers authored Nov 14, 2021
2 parents ebf2aab + fd1ae05 commit 7468165
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,16 @@ codecov_task:
folder: $CARGO_HOME/registry
setup_script:
- apt-get -y update
- apt-get -y install libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
- apt-get -y install libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev python-is-python3
- cargo install cargo-kcov
- if [ ! -x $HOME/.cargo/bin/kcov ] || [ ! -f $HOME/.cargo/bin/kcov ]; then mkdir kcov && cd kcov && cargo kcov --print-install-kcov-sh | sh && cd - && rm -rf kcov; fi
- |
if [ ! -x $HOME/.cargo/bin/kcov ] || [ ! -f $HOME/.cargo/bin/kcov ]; then
mkdir kcov
cd kcov
cargo kcov --print-install-kcov-sh | sh || exit 1
cd -
rm -rf kcov
fi
codecov_script:
- cargo check # Ensure Cargo.lock exists
- cargo kcov --verbose -- --include-pattern='futures-locks/src'
Expand Down

0 comments on commit 7468165

Please sign in to comment.