Skip to content

Commit 8a7b5ba

Browse files
committed
Install codecov.io uploader into container
Needed for rust-vmm/community#183, to replace out homegrown, file-based coverage checks with codecov.io. Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent 0931649 commit 8a7b5ba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build_container.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ fi
7979

8080
cargo install cargo-llvm-cov
8181

82+
# Install the codecov.io uploader. Not available on riscv64, so skip there
83+
if [ "$ARCH" != "riscv64" ]; then
84+
pushd /usr/local/bin
85+
if [ "$ARCH" = "x86_64" ]; then
86+
curl -O https://uploader.codecov.io/latest/linux/codecov
87+
else
88+
curl -O https://uploader.codecov.io/latest/aarch64/codecov
89+
fi
90+
chmod +x codecov
91+
popd
92+
fi
93+
8294
# Install some dependencies required by vhost-device crates but not available
8395
# in Ubuntu repos.
8496
# Some of these do not support riscv64, since vhost-device crates do not

0 commit comments

Comments
 (0)