-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable mima for interpreter-api and jupyter-api
- Loading branch information
1 parent
b854636
commit 2854de8
Showing
5 changed files
with
37 additions
and
2 deletions.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
sbt ++$TRAVIS_SCALA_VERSION'!' "show version" test | ||
sbt ++$TRAVIS_SCALA_VERSION'!' "show version" test mimaReportBinaryIssues |
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
import sys.process._ | ||
|
||
object Mima { | ||
|
||
private def stable(ver: String): Boolean = | ||
ver.exists(c => c != '0' && c != '.') && | ||
ver | ||
.replace("-RC", "-") | ||
.forall(c => c == '.' || c == '-' || c.isDigit) | ||
|
||
def binaryCompatibilityVersions: Set[String] = | ||
Seq("git", "tag", "--merged", "HEAD^", "--contains", "v0.3.1") | ||
.!! | ||
.linesIterator | ||
.map(_.trim) | ||
.filter(_.startsWith("v")) | ||
.map(_.stripPrefix("v")) | ||
.filter(_ != "0.3.1") // Mima enabled right after it | ||
.filter(stable) | ||
.toSet | ||
|
||
} |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.2.2") | ||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.3.0") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.11") | ||
addSbtCoursier |