Skip to content

Commit cb6a66e

Browse files
committed
1 parent 7383df2 commit cb6a66e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.circleci/config.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
environment:
3434
CC_TEST_REPORTER_ID: $CC_TEST_REPORTER_ID
3535
COVERALLS_REPO_TOKEN: $COVERALLS_REPO_TOKEN
36+
CODACY_PROJECT_TOKEN: $CODACY_PROJECT_TOKEN
3637

3738
# Specify service dependencies here if necessary
3839
# CircleCI maintains a library of pre-built images
@@ -90,12 +91,12 @@ jobs:
9091
gradle test jacocoJupTestReport coveralls
9192
9293
# upload test coverage to codacy
93-
# - run:
94-
# command: |
95-
# wget -O codacy-coverage-reporter-assembly.jar https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/2.0.2/codacy-coverage-reporter-2.0.2-assembly.jar
96-
# java -cp codacy-coverage-reporter-assembly.jar com.codacy.CodacyCoverageReporter -l Java -r build/reports/jacoco/report.xml
97-
# export CODACY_PROJECT_TOKEN=%CODACY_PROJECT_TOKEN%
98-
# codacy-coverage-reporter -l Java -r build/reports/jacoco/report.xml
94+
- run:
95+
command: |
96+
wget -O codacy-coverage-reporter-assembly.jar https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/2.0.2/codacy-coverage-reporter-2.0.2-assembly.jar
97+
java -cp codacy-coverage-reporter-assembly.jar com.codacy.CodacyCoverageReporter -l Java -r build/reports/jacoco/report.xml
98+
export CODACY_PROJECT_TOKEN=$CODACY_PROJECT_TOKEN
99+
codacy-coverage-reporter -l Java -r build/reports/jacoco/report.xml
99100
100101
build_test_python:
101102
<<: *defaults
@@ -104,6 +105,7 @@ jobs:
104105
environment:
105106
CC_TEST_REPORTER_ID: $CC_TEST_REPORTER_ID
106107
COVERALLS_REPO_TOKEN: $COVERALLS_REPO_TOKEN
108+
CODACY_PROJECT_TOKEN: $CODACY_PROJECT_TOKEN
107109

108110
working_directory: ~/repo
109111

0 commit comments

Comments
 (0)