-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
166 additions
and
8 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 +1 @@ | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.2") | ||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4") |
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.1.0 | ||
sbt.version = 1.2.6 |
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 @@ | ||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.10") |
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,7 @@ | ||
publishMavenStyle := false | ||
|
||
bintrayRepository := "sbt-plugins" | ||
|
||
bintrayPackageLabels := Seq("sbt", "sbt-plugin", "sbt-test", "scripted", "scripted-plugin", "scalatest") | ||
|
||
bintrayReleaseOnPublish := false |
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,16 @@ | ||
import ReleaseTransformations._ | ||
releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, | ||
inquireVersions, | ||
runClean, | ||
releaseStepCommandAndRemaining("^ test"), | ||
releaseStepCommandAndRemaining("^ scripted"), | ||
setReleaseVersion, | ||
commitReleaseVersion, | ||
tagRelease, | ||
releaseStepCommandAndRemaining("^ publish"), | ||
releaseStepTask(bintrayRelease), | ||
setNextVersion, | ||
commitNextVersion, | ||
pushChanges | ||
) |
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,5 @@ | ||
enablePlugins(SbtPlugin) | ||
scriptedLaunchOpts := { scriptedLaunchOpts.value ++ | ||
Seq("-Xmx1024M", "-Dplugin.version=" + version.value) | ||
} | ||
scriptedBufferLog := false |
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,32 @@ | ||
import com.github.daniel.shuy.sbt.scripted.scalatest.ScriptedScalaTestSuiteMixin | ||
import org.scalatest.Assertions._ | ||
import org.scalatest.WordSpec | ||
|
||
lazy val testFailure = project | ||
.in(file(".")) | ||
.settings( | ||
name := "test/sbt-0.13/testFailure", | ||
|
||
ScriptedPlugin.scriptedSettings, | ||
sys.props.get("plugin.version") match { | ||
case Some(pluginVersion) => scriptedLaunchOpts := { scriptedLaunchOpts.value ++ | ||
Seq("-Xmx1024M", "-XX:MaxPermSize=256M", "-Dplugin.version=" + pluginVersion) | ||
} | ||
case _ => sys.error("""|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin) | ||
}, | ||
scriptedBufferLog := false, | ||
|
||
scriptedScalaTestStacks := SbtScriptedScalaTest.FullStacks, | ||
scriptedScalaTestSpec := Some(new WordSpec with ScriptedScalaTestSuiteMixin { | ||
override val sbtState: State = state.value | ||
|
||
"scripted" should { | ||
"fail on ScalaTest failure" in { | ||
assertThrows[sbt.Incomplete]( | ||
Project.extract(sbtState) | ||
.runInputTask(scripted, "", sbtState)) | ||
} | ||
} | ||
}) | ||
) |
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 @@ | ||
sbt.version = 0.13.17 |
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,5 @@ | ||
sys.props.get("plugin.version") match { | ||
case Some(pluginVersion) => addSbtPlugin("com.github.daniel-shuy" % "sbt-scripted-scalatest" % pluginVersion) | ||
case _ => sys.error("""|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin) | ||
} |
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 @@ | ||
libraryDependencies += { "org.scala-sbt" % "scripted-plugin" % sbtVersion.value } |
20 changes: 20 additions & 0 deletions
20
src/sbt-test/sbt-0.13/testFailure/src/sbt-test/basic/simple/build.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import com.github.daniel.shuy.sbt.scripted.scalatest.ScriptedScalaTestSuiteMixin | ||
import org.scalatest.Assertions._ | ||
import org.scalatest.WordSpec | ||
|
||
lazy val testBasicSimple = project | ||
.in(file(".")) | ||
.settings( | ||
name := "test/basic/simple", | ||
|
||
scriptedScalaTestStacks := SbtScriptedScalaTest.FullStacks, | ||
scriptedScalaTestSpec := Some(new WordSpec with ScriptedScalaTestSuiteMixin { | ||
override val sbtState: State = state.value | ||
|
||
"scripted test" should { | ||
"fail" in { | ||
fail() | ||
} | ||
} | ||
}) | ||
) |
1 change: 1 addition & 0 deletions
1
src/sbt-test/sbt-0.13/testFailure/src/sbt-test/basic/simple/project/build.properties
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 @@ | ||
sbt.version = 0.13.17 |
5 changes: 5 additions & 0 deletions
5
src/sbt-test/sbt-0.13/testFailure/src/sbt-test/basic/simple/project/plugins.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sys.props.get("plugin.version") match { | ||
case Some(pluginVersion) => addSbtPlugin("com.github.daniel-shuy" % "sbt-scripted-scalatest" % pluginVersion) | ||
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
1
src/sbt-test/sbt-0.13/testFailure/src/sbt-test/basic/simple/test
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 @@ | ||
> scriptedScalatest |
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 @@ | ||
> scriptedScalatest |
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,32 @@ | ||
import com.github.daniel.shuy.sbt.scripted.scalatest.ScriptedScalaTestSuiteMixin | ||
import org.scalatest.Assertions._ | ||
import org.scalatest.WordSpec | ||
|
||
lazy val testFailure = project | ||
.in(file(".")) | ||
.enablePlugins(SbtPlugin) | ||
.settings( | ||
name := "test/sbt-0.13/testFailure", | ||
|
||
sys.props.get("plugin.version") match { | ||
case Some(pluginVersion) => scriptedLaunchOpts := { scriptedLaunchOpts.value ++ | ||
Seq("-Xmx1024M", "-Dplugin.version=" + pluginVersion) | ||
} | ||
case _ => sys.error("""|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin) | ||
}, | ||
scriptedBufferLog := false, | ||
|
||
scriptedScalaTestStacks := SbtScriptedScalaTest.FullStacks, | ||
scriptedScalaTestSpec := Some(new WordSpec with ScriptedScalaTestSuiteMixin { | ||
override val sbtState: State = state.value | ||
|
||
"scripted" should { | ||
"fail on ScalaTest failure" in { | ||
assertThrows[sbt.Incomplete]( | ||
Project.extract(sbtState) | ||
.runInputTask(scripted, "", sbtState)) | ||
} | ||
} | ||
}) | ||
) |
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 @@ | ||
sbt.version = 1.2.6 |
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,5 @@ | ||
sys.props.get("plugin.version") match { | ||
case Some(pluginVersion) => addSbtPlugin("com.github.daniel-shuy" % "sbt-scripted-scalatest" % pluginVersion) | ||
case _ => sys.error("""|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin) | ||
} |
20 changes: 20 additions & 0 deletions
20
src/sbt-test/sbt-1.0/testFailure/src/sbt-test/basic/simple/build.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import com.github.daniel.shuy.sbt.scripted.scalatest.ScriptedScalaTestSuiteMixin | ||
import org.scalatest.Assertions._ | ||
import org.scalatest.WordSpec | ||
|
||
lazy val testBasicSimple = project | ||
.in(file(".")) | ||
.settings( | ||
name := "test/basic/simple", | ||
|
||
scriptedScalaTestStacks := SbtScriptedScalaTest.FullStacks, | ||
scriptedScalaTestSpec := Some(new WordSpec with ScriptedScalaTestSuiteMixin { | ||
override val sbtState: State = state.value | ||
|
||
"scripted test" should { | ||
"fail" in { | ||
fail() | ||
} | ||
} | ||
}) | ||
) |
1 change: 1 addition & 0 deletions
1
src/sbt-test/sbt-1.0/testFailure/src/sbt-test/basic/simple/project/build.properties
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 @@ | ||
sbt.version = 1.2.6 |
5 changes: 5 additions & 0 deletions
5
src/sbt-test/sbt-1.0/testFailure/src/sbt-test/basic/simple/project/plugins.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sys.props.get("plugin.version") match { | ||
case Some(pluginVersion) => addSbtPlugin("com.github.daniel-shuy" % "sbt-scripted-scalatest" % pluginVersion) | ||
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
1
src/sbt-test/sbt-1.0/testFailure/src/sbt-test/basic/simple/test
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 @@ | ||
> scriptedScalatest |
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 @@ | ||
> scriptedScalatest |
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 @@ | ||
version in ThisBuild := "1.1.0" |