Skip to content

Commit e3bd026

Browse files
committed
Remove codecov orb
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
1 parent 51b4ff2 commit e3bd026

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
#
1414

1515
# common executors
16-
orbs:
17-
codecov: codecov/codecov@5
18-
1916
executors:
2017
java:
2118
docker:
@@ -33,8 +30,6 @@ commands:
3330
3431
save-test-results:
3532
steps:
36-
- codecov/upload:
37-
recurse_submodules: true
3833
- run:
3934
name: Save package results
4035
command: |
@@ -43,6 +38,30 @@ commands:
4338
when: always
4439
- store_test_results:
4540
path: ~/test-results
41+
- run:
42+
name: Codecov
43+
command: |
44+
set -x
45+
46+
curl -Os https://uploader.codecov.io/latest/linux/codecov
47+
chmod +x codecov
48+
49+
# Prepare extra arguments: include pull request number if set
50+
EXTRA=""
51+
if [ -n "$CIRCLE_PR_NUMBER" ]; then
52+
EXTRA="--pull-request-number $CIRCLE_PR_NUMBER"
53+
fi
54+
55+
# Build the set of common arguments.
56+
COMMON_ARGS="--token $CODECOV_TOKEN --branch $CIRCLE_BRANCH --commit-sha $CIRCLE_SHA1 $EXTRA --recurse-submodules --git-service github"
57+
58+
ls -lha
59+
60+
# Upload the coverage report.
61+
./codecov upload-coverage $COMMON_ARGS
62+
63+
# Upload the test reports.
64+
./codecov do-upload --report-type test_results $COMMON_ARGS
4665
4766
configure-gpg:
4867
steps:
@@ -127,7 +146,6 @@ jobs:
127146
command: |
128147
./mvnw -ntp -B verify -Pno-databases -Dtoolchain.skip=true
129148
shell: bash.exe
130-
- codecov/upload
131149

132150
buildExamples:
133151
<<: *defaults

0 commit comments

Comments
 (0)