Skip to content

Commit 1e74c35

Browse files
committed
Try the new way of doing codacy coverate reporting
1 parent d1422b6 commit 1e74c35

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.semaphore/semaphore.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,22 @@ blocks:
2323
- name: Run tests
2424
task:
2525
secrets:
26-
- name: publish-codacy-token
26+
- name: codacy_api_token
2727
env_vars:
2828
- name: PIP_CACHE_DIR
2929
value: .pip_cache
30+
- name: CODACY_USERNAME
31+
value: fiaas-svc
32+
- name: CODACY_PROJECT_NAME
33+
value: logging
3034
prologue:
3135
commands:
3236
- export PATH="${HOME}/.local/bin":"${PATH}"
3337
- checkout
3438
- mkdir "${PIP_CACHE_DIR}"
3539
- cache restore "setup-${SEMAPHORE_GIT_BRANCH}-$(checksum setup.py)","setup-${SEMAPHORE_GIT_BRANCH}",setup-master
3640
- pip install --user tox
41+
- bash <(curl -Ls https://coverage.codacy.com/get.sh) --help # Use --help to just download too and not run it
3742
jobs:
3843
- name: Tests
3944
commands:

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def main():
6969
setup_requires=['pytest-runner', 'wheel', 'setuptools_scm'],
7070
extras_require={
7171
"dev": TESTS_REQ + CODE_QUALITY_REQ,
72-
"codacy": ["codacy-coverage"],
7372
"release": ["publish"]
7473
},
7574
tests_require=TESTS_REQ,

tox.ini

+9-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@ setenv =
1111
TMP = {envtmpdir}
1212
passenv =
1313
HOME
14+
PIP_CACHE_DIR
15+
CI
16+
SEMAPHORE_*
1417
commands=prospector
1518
!py38: py.test
1619
py38: py.test --cov=fiaas_logging --cov-report html --cov-report term --cov-report xml
1720

1821
[testenv:coverage]
1922
basepython=python3.8
2023
usedevelop=True
21-
deps=.[dev,codacy]
24+
deps=.[dev]
2225
passenv =
2326
HOME
24-
CODACY_PROJECT_TOKEN
27+
PIP_CACHE_DIR
28+
CI
29+
SEMAPHORE_*
30+
CODACY_*
2531
commands=py.test --cov=fiaas_logging --cov-report html --cov-report term --cov-report xml
26-
python-codacy-coverage -r ./build/reports/coverage.xml
32+
.codacy-coverage/codacy-coverage-reporter -r ./build/reports/coverage.xml

0 commit comments

Comments
 (0)