mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-24 15:25:09 +00:00
Use Codecov to show coverage reports, so we get highlighted versions of the files where it is easy to see missing coverage. - Setup Rust coverage using [`cargo-llvm-cov`](https://github.com/taiki-e/cargo-llvm-cov). - Add the `ci/agent.sh` build script to the agent artifact cache key, since it wasn't there before. - Don't run Rust tests in `--release` mode (have been meaning to change this so doing it at the same time). There is some subtlety about putting the coverage result into the cached agent artifact, so that when we reuse the agent artifact we can still upload the coverage information for it to Codecov. Without this it would look like the coverage had dropped.
25 lines
611 B
Bash
Executable File
25 lines
611 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
# Note that this script runs as user 'vscode' during devcontainer setup.
|
|
|
|
# Rust global tools, needed to run CI scripts
|
|
"$HOME/.cargo/bin/cargo" install cargo-audit cargo-license@0.4.2 cargo-llvm-cov
|
|
"$HOME/.cargo/bin/rustup" component add llvm-tools-preview
|
|
|
|
# NPM global tools
|
|
sudo npm install -g azurite azure-functions-core-tools@4
|
|
|
|
# Pip global tools
|
|
pip install wheel
|
|
|
|
# Other binaries
|
|
echo "Installing azcopy ..."
|
|
tmpdir=$(mktemp -d)
|
|
pushd "$tmpdir"
|
|
wget https://aka.ms/downloadazcopy-v10-linux -O - | tar -zxv
|
|
sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
|
|
popd
|
|
rm -rf "$tmpdir"
|