From f9a784616a20ba99e4a91ba730e9262234e46a36 Mon Sep 17 00:00:00 2001 From: exoego Date: Tue, 2 Jul 2019 11:23:54 +0900 Subject: [PATCH 1/2] Add codecov for coverage report. --- .codecov.yml | 5 +++++ .travis.yml | 8 +++++++- project/plugins.sbt | 11 ++++++----- 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..5077db300 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,5 @@ +coverage: + status: + project: + default: + threshold: 5% diff --git a/.travis.yml b/.travis.yml index cef5385d1..28ce4d571 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,9 +17,15 @@ install: git clone https://github.com/nvm-sh/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION + - pip install --user codecov script: - - sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck current/doc core/doc test + - sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck clean current/doc core/doc coverage test + - if [[ "$TRAVIS_SCALA_VERSION" != 2.13.* ]]; # Primary support is 2.12.x + then + sbt ++$TRAVIS_SCALA_VERSION coverageReport coverageAggregate && codecov; + else echo "Skipping code coverage reporting on 2.13"; + fi before_cache: - rm -fv $HOME/.ivy2/.sbt.ivy.lock diff --git a/project/plugins.sbt b/project/plugins.sbt index 958baf91e..1edc9429b 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,6 @@ -addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28") -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2") -addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5") -addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11") -addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28") +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2") +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5") +addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11") +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0") From 0f36f0e77fd2e7ff58e2f943a9ed1f43eb8425c7 Mon Sep 17 00:00:00 2001 From: exoego Date: Wed, 3 Jul 2019 10:39:04 +0900 Subject: [PATCH 2/2] format --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 28ce4d571..1a0c73737 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,10 +13,7 @@ jdk: - openjdk11 install: - - rm -rf ~/.nvm && - git clone https://github.com/nvm-sh/nvm.git ~/.nvm && - (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && - source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION + - rm -rf ~/.nvm && git clone https://github.com/nvm-sh/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && Ksource ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION - pip install --user codecov script: