Skip to content

Commit

Permalink
Use coveralls (close #173)
Browse files Browse the repository at this point in the history
  • Loading branch information
pondzix committed Mar 8, 2022
1 parent d6a8a64 commit 44fa507
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ jobs:
java-version: 11

- name: Run tests
run: sbt +test
run: sbt coverage +test

- name: Check Scala formatting
run: sbt scalafmtCheckAll

- name: Check assets can be published
run: sbt +publishLocal

- name: Submit coveralls data
run: sbt coverageReport coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Scala MaxMind IP Lookups

[![Build Status](https://github.com/snowplow/scala-maxmind-iplookups/workflows/CI/badge.svg)](https://github.com/snowplow/scala-maxmind-iplookups/workflows/CI/badge.svg)
[![Maven Central](https://img.shields.io/maven-central/v/com.snowplowanalytics/scala-maxmind-iplookups_2.12.svg)](https://maven-badges.herokuapp.com/maven-central/com.snowplowanalytics/scala-maxmind-iplookups_2.12)
[![codecov](https://codecov.io/gh/snowplow/scala-maxmind-iplookups/branch/master/graph/badge.svg)](https://codecov.io/gh/snowplow/scala-maxmind-iplookups)
[![Join the chat at https://gitter.im/snowplow/scala-maxmind-iplookups](https://badges.gitter.im/snowplow/scala-maxmind-iplookups.svg)](https://gitter.im/snowplow/scala-maxmind-iplookups?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status][ci-image]][ci]
[![Maven Central][release-image]][releases]
[![Coverage Status][coveralls-image]][coveralls]
[![Gitter][chat-image]][chat]

## Introduction

Expand Down Expand Up @@ -265,3 +265,15 @@ limitations under the License.
[geolitecity-dat]: http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz

[license]: http://www.apache.org/licenses/LICENSE-2.0

[ci]: https://github.com/snowplow/scala-maxmind-iplookups/actions?query=workflow%3ACI
[ci-image]: https://github.com/snowplow/scala-maxmind-iplookups/workflows/CI/badge.svg

[releases]: https://maven-badges.herokuapp.com/maven-central/com.snowplowanalytics/scala-maxmind-iplookups_2.13
[release-image]: https://maven-badges.herokuapp.com/maven-central/com.snowplowanalytics/scala-maxmind-iplookups_2.13/badge.svg

[coveralls]: https://coveralls.io/github/snowplow/scala-maxmind-iplookups?branch=master
[coveralls-image]: https://coveralls.io/repos/github/snowplow/scala-maxmind-iplookups/badge.svg?branch=master

[chat]: https://gitter.im/snowplow/scala-maxmind-iplookups?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge
[chat-image]: https://badges.gitter.im/snowplow/scala-maxmind-iplookups.svg
2 changes: 1 addition & 1 deletion project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ object BuildSettings {
)

lazy val coverageSettings = Seq(
coverageMinimum := 90
coverageMinimumStmtTotal := 90
)
}
11 changes: 6 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.3")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.13")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.3")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.13")

0 comments on commit 44fa507

Please sign in to comment.