-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: move on to the new coverage uploader
the old, bash uploader is long EOL now. Downloading and integrity check of the uploader script is done in docker building process (on the latest Ubuntu LTS).
- Loading branch information
1 parent
9b201f7
commit b72fc75
Showing
6 changed files
with
48 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
utils/docker/images/0001-fix-generating-gcov-files-and-turn-off-verbose-log.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,39 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2020, Intel Corporation | ||
# Copyright 2020-2023, Intel Corporation | ||
|
||
# | ||
# download-scripts.sh - downloads specific version of codecov's bash | ||
# script to generate and upload reports. It's useful, | ||
# since unverified version may break coverage results. | ||
# download-scripts.sh - downloads latest version of | ||
# codecov's uploader to generate and upload reports. | ||
# | ||
|
||
set -e | ||
|
||
# master: Merge pull request #342 from codecov/revert-proj-name-..., 18.08.2020 | ||
CODECOV_VERSION="e877c1280cc6e902101fb5df2981ed1c962da7f0" | ||
|
||
if [ "${SKIP_SCRIPTS_DOWNLOAD}" ]; then | ||
echo "Variable 'SKIP_SCRIPTS_DOWNLOAD' is set; skipping scripts' download" | ||
exit | ||
fi | ||
|
||
mkdir -p /opt/scripts | ||
|
||
# Download codecov's bash script | ||
git clone https://github.com/codecov/codecov-bash | ||
cd codecov-bash | ||
git checkout $CODECOV_VERSION | ||
if ! [ -x "$(command -v curl)" ]; then | ||
echo "Error: curl is not installed." | ||
return 1 | ||
fi | ||
|
||
# Download codecov and check integrity | ||
mkdir -p codecov-tmp | ||
pushd codecov-tmp | ||
|
||
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig | ||
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM | ||
shasum -a 256 -c codecov.SHA256SUM | ||
chmod +x codecov | ||
|
||
git apply ../0001-fix-generating-gcov-files-and-turn-off-verbose-log.patch | ||
mv -v codecov /opt/scripts/codecov | ||
|
||
cd .. | ||
rm -rf codecov-bash | ||
popd | ||
rm -rf codecov-tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters