Skip to content

Commit 6bd5c4b

Browse files
author
Evan Sims
authored
Replace Codecov uploader w/ CircleCI Orb
This PR replaces the deprecated Codecov “bash uploader” for the recommended CircleCI Orb equivalent.
1 parent e2456b3 commit 6bd5c4b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.circleci/config.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
version: 2.1
2+
23
orbs:
34
ship: auth0/ship@0.6.1
5+
codecov: codecov/codecov@3
6+
47
commands:
58
checkout-and-build:
69
steps:
@@ -17,13 +20,12 @@ commands:
1720
paths:
1821
- ~/.m2
1922
key: v1-dependencies-{{ checksum "build.gradle" }}
23+
2024
run-tests:
2125
steps:
2226
- run: ./gradlew check jacocoTestReport --continue --console=plain
23-
- run:
24-
name: Upload Coverage
25-
when: on_success
26-
command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
27+
- codecov/upload
28+
2729
run-api-diff:
2830
steps:
2931
# run apiDiff task
@@ -44,6 +46,7 @@ jobs:
4446
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
4547
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
4648
TERM: dumb
49+
4750
api-diff:
4851
docker:
4952
- image: openjdk:8-jdk
@@ -70,6 +73,7 @@ workflows:
7073
- master
7174
requires:
7275
- build
76+
7377
api-diff:
7478
jobs:
7579
- api-diff

0 commit comments

Comments
 (0)