Skip to content

Commit

Permalink
Adds Coursier and Travis Cache (#255)
Browse files Browse the repository at this point in the history
* Adds coursier and Travis Cache
* Empty commit for testing purposes
* Disables coverage flag once tests are finished
* Removes .ivy2 from cache travis section
* Brings back .ivy2 to cache section in travis file
  • Loading branch information
juanpedromoreno committed Apr 28, 2017
1 parent 7903863 commit 8a7b06a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,20 @@ script:
after_success:
- sbt ++$TRAVIS_SCALA_VERSION orgAfterCISuccess
- bash <(curl -s https://codecov.io/bash)

cache:
directories:
- $HOME/.sbt/0.13
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/cache
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.coursier

before_cache:
- du -h -d 1 $HOME/.ivy2/
- du -h -d 2 $HOME/.sbt/
- du -h -d 4 $HOME/.coursier/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- find $HOME/.coursier/cache -name "*.lock" -type f -delete
3 changes: 2 additions & 1 deletion project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ object ProjectPlugin extends AutoPlugin {
(compile in Compile).asRunnableItemFull,
(test in Test).asRunnableItemFull,
(ScoverageKeys.coverageReport in Test).asRunnableItemFull,
(ScoverageKeys.coverageAggregate in Test).asRunnableItemFull
(ScoverageKeys.coverageAggregate in Test).asRunnableItemFull,
SetSetting(coverageEnabled in Global, false).asRunnableItem
) ++ guard(scalaBinaryVersion.value == "2.12")(
(tut in ProjectRef(file("."), "docs")).asRunnableItem),
resolvers += Resolver.sonatypeRepo("snapshots"),
Expand Down
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
resolvers += Resolver.sonatypeRepo("releases")
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.4.17")
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.4.18")
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC1")
1 change: 1 addition & 0 deletions project/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC1")

0 comments on commit 8a7b06a

Please sign in to comment.