Skip to content

Commit ccd4191

Browse files
author
Evan Sims
authored
Merge pull request #595 from auth0/chore/upgrade-codecov
2 parents 3e6f4b8 + 190132c commit ccd4191

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

.circleci/config.yml

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
version: 2.1
2+
orbs:
3+
codecov: codecov/codecov@3
24

35
commands:
46
checkout-and-build:
@@ -8,9 +10,9 @@ commands:
810
# Download and cache dependencies
911
- restore_cache:
1012
keys:
11-
- v1-dependencies-{{ checksum "build.gradle" }}
12-
# fallback to using the latest cache if no exact match is found
13-
- v1-dependencies-
13+
- v1-dependencies-{{ checksum "build.gradle" }}
14+
# fallback to using the latest cache if no exact match is found
15+
- v1-dependencies-
1416
- run: ./gradlew clean build
1517
- save_cache:
1618
paths:
@@ -19,10 +21,7 @@ commands:
1921
run-tests:
2022
steps:
2123
- run: ./gradlew check jacocoTestReport --continue --console=plain
22-
- run:
23-
name: Upload Coverage
24-
when: on_success
25-
command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
24+
- codecov/upload
2625
# TODO re-enable once 4.0.0 is released
2726
# run-api-diff:
2827
# steps:
@@ -43,36 +42,21 @@ jobs:
4342
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
4443
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
4544
TERM: dumb
46-
# api-diff:
47-
# docker:
48-
# - image: openjdk:11.0-jdk
49-
# steps:
50-
# - checkout-and-build
51-
# - run-api-diff
52-
# environment:
53-
# GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
54-
# _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
55-
# TERM: dumb
56-
semgrep:
57-
docker:
58-
- image: returntocorp/semgrep-agent:v1
59-
environment:
60-
SEMGREP_REPO_NAME: "auth0/java-jwt"
61-
SEMGREP_REPO_URL: "https://github.com/auth0/java-jwt"
62-
steps:
63-
- checkout
64-
- run:
65-
name: Run vulnerabilities tests (Semgrep)
66-
command: |
67-
semgrep-agent --baseline-ref master --publish-token $SEMGREP_TOKEN
45+
# api-diff:
46+
# docker:
47+
# - image: openjdk:11.0-jdk
48+
# steps:
49+
# - checkout-and-build
50+
# - run-api-diff
51+
# environment:
52+
# GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
53+
# _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
54+
# TERM: dumb
6855

6956
workflows:
7057
build-and-test:
7158
jobs:
7259
- build
73-
- semgrep:
74-
context:
75-
- semgrep-env
7660
# api-diff:
7761
# jobs:
7862
# - api-diff

0 commit comments

Comments
 (0)