Skip to content

Commit

Permalink
attempt at adding coveralls support to drone runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysommer committed Jun 10, 2021
1 parent 06df8b6 commit fff4389
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ steps:
- pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1
- python setup.py install
- flake8 --exit-zero rdflib
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
- coverage report
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42


---
kind: pipeline
Expand All @@ -39,7 +39,26 @@ steps:
- python setup.py install
- flake8 --exit-zero rdflib
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
- coverage report

- name: coveralls
image: lizheming/drone-coveralls
environment:
COVERALLS_SERVICE_NAME: RDFLibDrone
COVERALLS_REPO_TOKEN:
from_secret: coveralls_token
settings:
# the files are relative to coverage entrypoint PWD, that is /usr/src/app/
files:
- ../../../drone/src/.coverage
commands:
- export COVERALLS_SERVICE_NUMBER="$DRONE_BUILD_NUMBER"
- export COVERALLS_SERVICE_JOB_ID="$DRONE_STAGE_NAME"
- export COVERALLS_SERVICE_JOB_NUMBER="$DRONE_STAGE_NUMBER"
- export COVERALLS_FLAG_NAME="$DRONE_STAGE_KIND"
- export COVERALLS_GIT_REPO="$DRONE_REPO_NAME"
- export COVERALLS_GIT_BRANCH="$DRONE_SOURCE_BRANCH"
- cd /usr/src/app && /usr/src/app/entrypoint.sh


---
kind: pipeline
Expand All @@ -59,5 +78,5 @@ steps:
- pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1
- python setup.py install
- flake8 --exit-zero rdflib
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
- coverage report
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42

0 comments on commit fff4389

Please sign in to comment.