Skip to content

Commit

Permalink
Add very simple scripted test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirofumi committed Jan 6, 2018
1 parent 5c5fbeb commit 8f48463
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
@@ -1 +1,22 @@
language: scala

jdk: oraclejdk8

matrix:
include:
- env: SBT_VERSION="0.13.16"
scala: 2.10.6
- env: SBT_VERSION="1.0.4"
scala: 2.12.4

script:
- sbt ++$TRAVIS_SCALA_VERSION "^^${SBT_VERSION}"

cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot

before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
4 changes: 4 additions & 0 deletions build.sbt
Expand Up @@ -26,6 +26,10 @@ scalacOptions := Seq(

sbtPlugin := true

scriptedBufferLog := false

scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Dplugin.version=" + version.value)

crossSbtVersions := Vector("0.13.16", "1.0.4")

val amazonSDKVersion = "1.11.236"
Expand Down
1 change: 1 addition & 0 deletions project/scripted.sbt
@@ -0,0 +1 @@
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
@@ -0,0 +1,5 @@
sys.props.get("plugin.version") match {
case Some(x) => addSbtPlugin("com.frugalmechanic" % "fm-sbt-s3-resolver" % x)
case _ => sys.error("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
}
1 change: 1 addition & 0 deletions src/sbt-test/fm-sbt-s3-resolver/addSbtPlugin/test
@@ -0,0 +1 @@
> update

0 comments on commit 8f48463

Please sign in to comment.