Skip to content

Commit 7241046

Browse files
committed
1 parent b1b15cb commit 7241046

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.circleci/config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
# run tests!
4242
- run: gradle test jacocoJupTestReport
4343

44+
# upload test coverage to codacy
45+
- run:
46+
command: |
47+
java -cp resources/codacy-coverage-reporter-2.0.2-assembly.jar com.codacy.CodacyCoverageReporter -l Java -r build/jacoco/report.xml
48+
export CODACY_PROJECT_TOKEN=%CODACY_PROJECT_TOKEN%
49+
codacy-coverage-reporter -l Java -r build/jacoco/report.xml
50+
4451
build_test_python:
4552
docker:
4653
- image: circleci/python:3.6.1
@@ -56,8 +63,15 @@ jobs:
5663
. venv/bin/activate
5764
pip install -r requirements.txt
5865
coverage-3.6 run scripts/run_unit_tests.py
66+
coverage-3.6 xml
5967
python3 scripts/create_problems_list.py
6068
69+
# upload test coverage to codacy
70+
- run:
71+
command: |
72+
export CODACY_PROJECT_TOKEN=%CODACY_PROJECT_TOKEN%
73+
python-codacy-coverage -r coverage.xml
74+
6175
workflows:
6276
version: 2
6377
build-test:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ scripts/problems_list.md
2727

2828
htmlcov
2929
.coverage
30+
coverage.xml
3031
package-lock.json
3132
node_modules
3233
__pycache__

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
markdown
22
BeautifulSoup4
3-
coverage
3+
coverage
4+
codacy-coverage

0 commit comments

Comments
 (0)