Skip to content
Permalink
Browse files

Merge pull request #2359 from ChristopherDavenport/removeCodeCoverage

Remove Coverage Steps
  • Loading branch information...
ChristopherDavenport committed Jan 17, 2019
2 parents 1d7057c + aaa9d95 commit 4d49f95bed0d0c9896409da5885a11d899d3e23d
Showing with 5 additions and 41 deletions.
  1. +0 −24 codecov.yml
  2. +3 −3 project/Http4sPlugin.scala
  3. +1 −4 project/PrivateProject.scala
  4. +1 −10 scripts/helpers

This file was deleted.

Oops, something went wrong.
@@ -53,12 +53,11 @@ object Http4sPlugin extends AutoPlugin {
case _ => false
})
},
coverageEnabled := false,
http4sMasterBranch := sys.env.get("TRAVIS_BRANCH") == Some("master"),
http4sApiVersion in ThisBuild := (version in ThisBuild).map {
case VersionNumber(Seq(major, minor, _*), _, _) => (major.toInt, minor.toInt)
}.value,
coverageEnabled := isTravisBuild.value && http4sPrimary.value,
coverageHighlighting := true,
git.remoteRepo := "git@github.com:http4s/http4s.git"
) ++ signingSettings

@@ -179,7 +178,8 @@ object Http4sPlugin extends AutoPlugin {
inquireVersions.when(release),
setReleaseVersion.when(release),
tagRelease.when(primary && release),
runTestWithCoverage,
runClean,
runTest,
releaseStepCommand("mimaReportBinaryIssues"),
releaseStepCommand("unusedCompileDependenciesTest"),
releaseStepCommand("test:scalafmt::test").when(primary),
@@ -5,18 +5,15 @@ import com.typesafe.tools.mima.plugin.MimaPlugin
import com.typesafe.tools.mima.plugin.MimaPlugin.autoImport._
import explicitdeps.ExplicitDepsPlugin.autoImport._
import sbt._
import scoverage.ScoverageSbtPlugin
import scoverage.ScoverageSbtPlugin.autoImport._
import verizon.build.DisablePublishingPlugin

object PrivateProjectPlugin extends AutoPlugin {
override def trigger = noTrigger

override def requires = Http4sPlugin && MimaPlugin && ScoverageSbtPlugin
override def requires = Http4sPlugin && MimaPlugin

override lazy val projectSettings: Seq[Setting[_]] =
DisablePublishingPlugin.projectSettings ++ Seq(
coverageExcludedPackages := ".*",
mimaPreviousArtifacts := Set.empty,
publishLocalSigned := {},
publishSigned := {},
@@ -52,13 +52,4 @@ function cleanup_cache() {
echo "Cleaning up the cache"
find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
find $HOME/.sbt -name "*.lock" -print -delete
}

function upload_codecov() {
if find . -name 'scoverage-data' -exec false {} +; then
echo "No codecov report found. Skipping upload."
else
echo "Uploading codecov"
bash <(curl -s https://codecov.io/bash)
fi
}
}

0 comments on commit 4d49f95

Please sign in to comment.
You can’t perform that action at this time.