-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to sbt 1.5.0 and use dynver and mima plugins directly
- Upgrade sbt to 1.5.0 - Remove sbt-git-versioning - Add sbt-dynver and sbt-mima plugins - Upgrade Scala versions - Upgrade scalatest to 3.2.7 - Upgrade scalacheck-ops to 2.6.0 - Update travis build to match - Update .gitignore for new version of sbt - Fix flaky test - Use contains instead of == - Use randomOrThrow() instead of .getOrThrow
- Loading branch information
Showing
9 changed files
with
71 additions
and
75 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
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,21 +1,30 @@ | ||
language: scala | ||
scala: | ||
- 2.13.1 | ||
- 2.13.5 | ||
jdk: | ||
- openjdk8 | ||
- openjdk11 | ||
|
||
before_script: | ||
# Download sbt because Travis can't find it automatically :( | ||
- mkdir -p $HOME/.sbt/launchers/1.5.0/ | ||
- curl -L -o $HOME/.sbt/launchers/1.5.0/sbt-launch.jar https://repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.5.0/sbt-launch-1.5.0.jar | ||
|
||
script: | ||
- sbt clean coverage test coverageAggregate coverageOff | ||
after_success: | ||
# Upload coverage reports to codecov.io | ||
- bash <(curl -s https://codecov.io/bash) -t 24961df6-494e-4024-b035-ad2aca2ed706 | ||
- sbt clean coverage +test coverageAggregate | ||
# Upload coverage reports to codecov.io before checking for binary compatibility | ||
- bash <(curl -s https://codecov.io/bash) | ||
- sbt +mimaReportBinaryIssues | ||
|
||
# Tricks to avoid unnecessary cache updates | ||
- find $HOME/.sbt -name "*.lock" | xargs rm | ||
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm | ||
# Avoid unnecessary cache updates | ||
before_cache: | ||
- rm -fv $HOME/.ivy2/.sbt.ivy.lock | ||
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete | ||
- find $HOME/.sbt -name "*.lock" -print -delete | ||
|
||
# These directories are cached to S3 at the end of the build | ||
cache: | ||
directories: | ||
- $HOME/.cache/coursier | ||
- $HOME/.ivy2/cache | ||
- $HOME/.sbt/boot/ | ||
- $HOME/.sbt |
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
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
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 +1 @@ | ||
sbt.version=1.3.0 | ||
sbt.version=1.5.0 |
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,10 +1,9 @@ | ||
resolvers += Classpaths.sbtPluginReleases | ||
resolvers += Resolver.bintrayIvyRepo("rallyhealth", "sbt-plugins") | ||
resolvers += Resolver.url( | ||
"bintray-sbt-plugin-releases", | ||
url("https://dl.bintray.com/content/sbt/sbt-plugin-releases") | ||
)(Resolver.ivyStylePatterns) | ||
|
||
addSbtPlugin("com.rallyhealth.sbt" %% "sbt-git-versioning" % "1.2.2") | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6") | ||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") | ||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.8.1") | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.6.1") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") |