Coverage reporting server and plugin for Drone CI.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Johann Rudloff 562cf37fa9 Update npm dependencies. 11 달 전
reporter Update npm dependencies. 11 달 전
templates Add server. 1 년 전
tests Add IDs to all test stages in preparation for tavern upgrade. 1 년 전
.gitignore Add server. 1 년 전
LICENSE Add server. 1 년 전
Pipfile Upgrade tavern dependency. 1 년 전
Pipfile.lock Upgrade tavern dependency. 1 년 전 Fix typo. 1 년 전 Add server. 1 년 전 Add server. 1 년 전

Lighweight Coverage Tracking Server for Drone CI

The server has exactly 2 features:

  • Receive POSTed coverage summary results and store them per repo/branch
  • Provide badge SVGs with the current coverage. With color based on current coverage.

Running the Server

pipenv install

# Optional, set database URI (default is ./dronecov.db)
export DRONECOV_DB_URI=sqlite:///./var/dronecov_data.db

pipenv run ./ init
pipenv run gunicorn -b dronecov:app

# Generate access token
pipenv run ./ token username "Token Name / Description"

SVGs are available at: http://localhost:5000/<username>/<reponame>/<branch>/coverage.svg

Set custom thresholds for error (red) and warning (orange): http://localhost:5000/<username>/<reponame>/<branch>/coverage.svg?error=60&warn=80

Using the Reporter Plugin in Drone CI

In .drone.yml:


  # Your other steps ...

    image: cypheon/dronecov
    secrets: [ dronecov_access_token ]
    lcov_info: './path/to/coverage/'


Run development server:

pipenv install --dev

DRONECOV_DB_URI=sqlite:///./tests/tmp.db FLASK_DEBUG=1 pipenv run flask run

Run tests: