Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit f9a7846

Browse files
author
exoego
committed
Add codecov for coverage report.
1 parent 8ba601c commit f9a7846

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
threshold: 5%

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ install:
1717
git clone https://github.com/nvm-sh/nvm.git ~/.nvm &&
1818
(cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) &&
1919
source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
20+
- pip install --user codecov
2021

2122
script:
22-
- sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck current/doc core/doc test
23+
- sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck clean current/doc core/doc coverage test
24+
- if [[ "$TRAVIS_SCALA_VERSION" != 2.13.* ]]; # Primary support is 2.12.x
25+
then
26+
sbt ++$TRAVIS_SCALA_VERSION coverageReport coverageAggregate && codecov;
27+
else echo "Skipping code coverage reporting on 2.13";
28+
fi
2329

2430
before_cache:
2531
- rm -fv $HOME/.ivy2/.sbt.ivy.lock

project/plugins.sbt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28")
2-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2")
3-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")
4-
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11")
5-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
1+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28")
2+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2")
3+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")
4+
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11")
5+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
6+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0")

0 commit comments

Comments
 (0)