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 bfae107
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 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 @@ -31,15 +31,26 @@ platform:
steps:
- name: test
image: python:3.7
environment:
COVERALLS_SERVICE_NAME: RDFLib-Drone
COVERALLS_REPO_TOKEN:
from_secret: coveralls_token
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"
- bash .travis.fuseki_install_optional.sh
- pip install --default-timeout 60 -r requirements.txt
- pip install --default-timeout 60 -r requirements.dev.txt
- 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
- coverage report --skip-covered
- coveralls

---
kind: pipeline
Expand All @@ -59,5 +70,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 bfae107

Please sign in to comment.