-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1185 Add MiMa to check binary compatibility
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,28 @@ git.remoteRepo := "[email protected]:sbt/sbt-native-packager.git" | |
// scripted test settings | ||
scriptedLaunchOpts += "-Dproject.version=" + version.value | ||
|
||
// binary compatibility settings | ||
mimaPreviousArtifacts := { | ||
val m = organization.value %% moduleName.value % "1.3.15" | ||
val sbtBinV = (sbtBinaryVersion in pluginCrossBuild).value | ||
val scalaBinV = (scalaBinaryVersion in update).value | ||
Set( | ||
Defaults.sbtPluginExtra(m cross CrossVersion.Disabled(), sbtBinV, scalaBinV) | ||
) | ||
} | ||
mimaBinaryIssueFilters ++= { | ||
import com.typesafe.tools.mima.core._ | ||
List( | ||
// added via #1179 | ||
ProblemFilters.exclude[ReversedMissingMethodProblem]("com.typesafe.sbt.packager.rpm.RpmKeys.rpmEpoch"), | ||
ProblemFilters.exclude[ReversedMissingMethodProblem]("com.typesafe.sbt.packager.rpm.RpmKeys.com$typesafe$sbt$packager$rpm$RpmKeys$_setter_$rpmEpoch_="), | ||
ProblemFilters.exclude[MissingTypesProblem]("com.typesafe.sbt.packager.rpm.RpmMetadata$"), | ||
ProblemFilters.exclude[DirectMissingMethodProblem]("com.typesafe.sbt.packager.rpm.RpmMetadata.apply"), | ||
ProblemFilters.exclude[DirectMissingMethodProblem]("com.typesafe.sbt.packager.rpm.RpmMetadata.copy"), | ||
ProblemFilters.exclude[DirectMissingMethodProblem]("com.typesafe.sbt.packager.rpm.RpmMetadata.this") | ||
) | ||
} | ||
|
||
// Release configuration | ||
publishMavenStyle := false | ||
|
||
|
@@ -84,7 +106,7 @@ bintrayRepository := "sbt-plugin-releases" | |
addCommandAlias("scalafmtAll", "; scalafmt ; test:scalafmt ; sbt:scalafmt") | ||
// ci commands | ||
addCommandAlias("validateFormatting", "; scalafmt::test ; test:scalafmt::test ; sbt:scalafmt::test") | ||
addCommandAlias("validate", "; clean ; update ; validateFormatting ; test") | ||
addCommandAlias("validate", "; clean ; update ; validateFormatting ; test ; mimaReportBinaryIssues") | ||
|
||
// List all scripted test separately to schedule them in different travis-ci jobs. | ||
// Travis-CI has hard timeouts for jobs, so we run them in smaller jobs as the scripted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters