Skip to content

Commit 710bbae

Browse files
huntiejacdebug
authored andcommitted
Remove Codecov third party orb dependency in CI (#898)
Summary: Pull Request resolved: #898 Restores CI runs following #888, where our CircleCI security policy prevents the use of any third party orbs. https://pxl.cl/2lbJL Reviewed By: robhogan Differential Revision: D41436440 fbshipit-source-id: da0ce96232658058304de4e81145084521414b7a
1 parent eecd260 commit 710bbae

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
version: 2.1
55

66
orbs:
7-
codecov: codecov/codecov@3.2.4
87
win: circleci/windows@2.4.0
98

109
references:
@@ -70,8 +69,12 @@ jobs:
7069
- checkout
7170
- yarn_install
7271
- run: yarn test-coverage
73-
- codecov/upload:
74-
file: ./coverage/coverage-final.json
72+
- run:
73+
name: Download Codecov Uploader
74+
command: ./.circleci/scripts/install_codecov.sh
75+
- run:
76+
name: Upload coverage results
77+
command: ./codecov -t ${CODECOV_TOKEN} -f ./coverage/coverage-final.json
7578

7679
test-linux:
7780
<<: *secure_unset_publish_token
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
# Install Codecov Uploader
4+
# See https://docs.codecov.com/docs/codecov-uploader#using-the-uploader-with-codecovio-cloud
5+
6+
CODECOV_URL="https://uploader.codecov.io"
7+
8+
curl "${CODECOV_URL}/verification.gpg" | gpg --no-default-keyring --keyring trustedkeys.gpg --import
9+
curl -Os "${CODECOV_URL}/latest/linux/codecov"
10+
curl -Os "${CODECOV_URL}/latest/linux/codecov.SHA256SUM"
11+
curl -Os "${CODECOV_URL}/latest/linux/codecov.SHA256SUM.sig"
12+
13+
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
14+
shasum -a 256 -c codecov.SHA256SUM
15+
16+
chmod +x codecov

0 commit comments

Comments
 (0)