File tree Expand file tree Collapse file tree 5 files changed +406
-0
lines changed Expand file tree Collapse file tree 5 files changed +406
-0
lines changed Original file line number Diff line number Diff line change 1+ coverage.xml
2+ .env
Original file line number Diff line number Diff line change 1+ # Go Coverage
2+
3+ This tool is used to export summary of XML coverage report into a SQL database.
4+
5+ ## Usage
6+
7+ ``` bash
8+ export ANALYTICS_DATABASE_HOST=" localhost"
9+ export ANALYTICS_DATABASE_PORT=" 5433"
10+ export ANALYTICS_DATABASE_USERNAME=" postgres"
11+ export ANALYTICS_DATABASE_PASSWORD=" "
12+ export ANALYTICS_DATABASE_NAME=" analytics"
13+ export DRONE_REPO=" openware/go-coverage"
14+ export ANALYTICS_COMPONENT=" go-coverage" # use it to differenciate different applications in a mono-repo.
15+ export DRONE_TAG=" 1.0.0" # trigger this script on drone tag to track only stable versions
16+
17+ go run ./ coverage.xml
18+ ```
Original file line number Diff line number Diff line change 1+ module github.com/openware/go-coverage
2+
3+ go 1.19
4+
5+ require (
6+ github.com/antchfx/xmlquery v1.3.13 // indirect
7+ github.com/antchfx/xpath v1.2.1 // indirect
8+ github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
9+ github.com/jackc/chunkreader/v2 v2.0.1 // indirect
10+ github.com/jackc/pgconn v1.13.0 // indirect
11+ github.com/jackc/pgio v1.0.0 // indirect
12+ github.com/jackc/pgpassfile v1.0.0 // indirect
13+ github.com/jackc/pgproto3/v2 v2.3.1 // indirect
14+ github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
15+ github.com/jackc/pgtype v1.12.0 // indirect
16+ github.com/jackc/pgx/v4 v4.17.2 // indirect
17+ github.com/jinzhu/inflection v1.0.0 // indirect
18+ github.com/jinzhu/now v1.1.4 // indirect
19+ golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
20+ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
21+ golang.org/x/text v0.3.7 // indirect
22+ gorm.io/driver/postgres v1.4.5 // indirect
23+ gorm.io/gorm v1.24.2 // indirect
24+ )
You can’t perform that action at this time.
0 commit comments