From 9b45e9f8528c5d7dedfa9f8c7b8b883655a239e8 Mon Sep 17 00:00:00 2001 From: Jessica Scheick Date: Thu, 18 Jan 2024 14:31:05 -0500 Subject: [PATCH] update codecov uploader in travis --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b2c4ccde6..e94f95410 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,8 +28,16 @@ jobs: include: - stage: basic tests script: pytest icepyx/ --verbose --cov app --ignore icepyx/tests/test_behind_NSIDC_API_login.py - after_success: codecov/codecov-action@v3 - + # includes an integrity check of the uploader as recommended by CodeCov + after_success: + - curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step + - 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 + - ./codecov -t ${CODECOV_TOKEN} - stage: behind Earthdata script: - export EARTHDATA_PASSWORD=$NSIDC_LOGIN