mirror of https://github.com/sbt/sbt.git
Merge pull request #4910 from eatkins/coursier-cache
Add coursier cache to CI
This commit is contained in:
commit
f0b54ca3a0
|
|
@ -26,5 +26,6 @@ test_script:
|
|||
- sbt "scripted actions/* classloader-cache/* nio/* watch/*" "testOnly sbt.ServerSpec"
|
||||
|
||||
cache:
|
||||
- '%LOCALAPPDATA%\Coursier\Cache\v1'
|
||||
- '%USERPROFILE%\.ivy2\cache'
|
||||
- '%USERPROFILE%\.sbt'
|
||||
|
|
|
|||
|
|
@ -36,11 +36,13 @@ script:
|
|||
- sbt -Dsbt.ci=true -J-XX:ReservedCodeCacheSize=128m -J-Xmx800M -J-Xms800M -J-server "$SBT_CMD"
|
||||
|
||||
before_cache:
|
||||
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
|
||||
- find $HOME/.sbt -name "*.lock" -delete
|
||||
- find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete
|
||||
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
|
||||
- find $HOME/.sbt -name "*.lock" -delete
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.cache/coursier/v1
|
||||
- $HOME/.ivy2/cache
|
||||
- $HOME/.sbt/boot
|
||||
- $HOME/.jabba
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ scalaVersion := "2.12.8"
|
|||
scalacOptions ++= Seq("-feature", "-language:postfixOps")
|
||||
|
||||
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.9")
|
||||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.0")
|
||||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2")
|
||||
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.4.1")
|
||||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.2")
|
||||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
|
||||
|
|
|
|||
Loading…
Reference in New Issue