diff .travis.yml @ 7256:426a40726f65

download codecov uploader for travis-ci this replaces the original pip codecov library. suppress github ci no-github-ci since this change doesn't affect it.
author John Rouillard <rouilj@ieee.org>
date Wed, 12 Apr 2023 23:12:34 -0400
parents c878d24ea034
children 8a9f1732c4b6
line wrap: on
line diff
--- a/.travis.yml	Wed Apr 12 21:46:41 2023 -0400
+++ b/.travis.yml	Wed Apr 12 23:12:34 2023 -0400
@@ -128,7 +128,7 @@
   - pip install redis
   - pip install pytz whoosh pyjwt requests
   - pip install jinja2
-  - pip install pytest-cov codecov
+  - pip install pytest-cov
   - pip install beautifulsoup4
   - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install docutils; fi
   - if [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]]; then pip install mistune==0.8.4; fi
@@ -177,4 +177,13 @@
   - ./setup.py build_doc
 
 after_success:
-  - codecov
+  # from 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 # 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}

Roundup Issue Tracker: http://roundup-tracker.org/