Skip to content

Commit

Permalink
Download uploaders for aws and codecov for the correct platform
Browse files Browse the repository at this point in the history
The machine arm executor was able to run the x86_64 code,
while the docker one is not.
  • Loading branch information
chrzaszcz committed Oct 12, 2023
1 parent 8c2e548 commit 5c8a61c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 7 additions & 3 deletions tools/circle-upload-codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

set -eo pipefail

PLATFORM=`uname -m`
[ $PLATFORM == "x86_64" ] && PLATFORM=linux
BASE_URL="https://uploader.codecov.io/latest/$PLATFORM"

# Source: https://docs.codecov.com/docs/codecov-uploader#integrity-checking-the-uploader
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
curl -Os "$BASE_URL/codecov"
curl -Os "$BASE_URL/codecov.SHA256SUM"
curl -Os "$BASE_URL/codecov.SHA256SUM.sig"
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM

Expand Down
4 changes: 1 addition & 3 deletions tools/circleci-upload-to-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ fi
echo "Uploading test results to s3"
echo $(s3_url ${CT_REPORTS})



FILE_COUNT=$(find "${CT_REPORTS}" -type f | wc -l)
echo "Uploading $FILE_COUNT files"
ls $CT_REPORTS

if which aws ; then
echo "aws tool ready"
else
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
curl "https://awscli.amazonaws.com/awscli-exe-linux-`uname -m`.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
sudo ./aws/install
fi
Expand Down

0 comments on commit 5c8a61c

Please sign in to comment.