Skip to content

Commit acf05e4

Browse files
committed
switch to pip installed codecov-cli
1 parent 9429b9a commit acf05e4

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ pytest-xdist
88
pytest-cov
99
line_profiler
1010
isort
11+
codecov-cli

share/ramble/cloud-build/ramble-pr-unit-tests.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ steps:
3434
echo "Spack version is $(spack --version)"
3535
echo "Python version is $(python3 --version)"
3636
37-
if [[ "$_PUSH_CODECOV" ]]; then
38-
# This could be pushed into the image, but is recommended as a runtime step
39-
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
40-
curl -Os https://cli.codecov.io/latest/linux/codecov
41-
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
42-
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
43-
gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM
44-
45-
sha256sum -c codecov.SHA256SUM
46-
chmod +x codecov
47-
fi
48-
4937
UNIT_TEST_COVERAGE=true LONG=true /workspace/share/ramble/qa/run-unit-tests
5038
# $$ characters are required for cloud-build:
5139
# https://cloud.google.com/build/docs/configuring-builds/substitute-variable-values

share/ramble/qa/run-unit-tests

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,9 @@ if [ $? != 0 ]; then
7373
ERROR=1
7474
fi
7575

76-
77-
echo $PUSH_CODECOV
7876
if [[ "$PUSH_CODECOV" ]]; then
7977
echo "Processing codecov upload"
80-
# TODO: this must be in path somehow. What is the best way?
81-
export PATH=$PATH:/workspace/
82-
codecov upload-process
78+
codecovcli upload-process
8379
fi
8480

8581
if [ $ERROR == 1 ]; then

0 commit comments

Comments
 (0)