@@ -24,8 +24,9 @@ class CommunityBuildTest {
24
24
* @param project The project name, should be a git submodule in community-build/
25
25
* @param command The sbt command used to test the project
26
26
* @param updateCommand The sbt command used to update the project
27
+ * @param extraSbtArgs Extra arguments to pass to sbt
27
28
*/
28
- def test (project : String , testCommand : String , updateCommand : String ): Unit = {
29
+ def test (project : String , testCommand : String , updateCommand : String , extraSbtArgs : Seq [ String ] = Nil ): Unit = {
29
30
def log (msg : String ) = println(Console .GREEN + msg + Console .RESET )
30
31
31
32
log(s " Building $project with dotty-bootstrapped $compilerVersion... " )
@@ -57,7 +58,7 @@ class CommunityBuildTest {
57
58
val pluginFilePath = communitybuildDir.resolve(" sbt-dotty-sbt" ).toAbsolutePath().toString()
58
59
59
60
// Run the sbt command with the compiler version and sbt plugin set in the build
60
- val arguments = Seq (
61
+ val arguments = extraSbtArgs ++ Seq (
61
62
" -sbt-version" , " 1.2.7" ,
62
63
s " --addPluginSbtFile= $pluginFilePath" ,
63
64
s " ;clean ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++ $compilerVersion! $testCommand"
@@ -74,8 +75,8 @@ class CommunityBuildTest {
74
75
| cd community-build/community-projects/ $project
75
76
| sbt ${arguments.init.mkString(" " )} " ${arguments.last}"
76
77
|
77
- |For a faster feedback loop, one can try to extract a direct call to dotc from
78
- |usign the sbt export command. For instance, for scalacheck, use
78
+ |For a faster feedback loop, one can try to extract a direct call to dotc
79
+ |using the sbt export command. For instance, for scalacheck, use
79
80
| sbt export jvm/test:compileIncremental
80
81
|
81
82
| """ .stripMargin)
@@ -152,7 +153,8 @@ class CommunityBuildTest {
152
153
@ Test def stdLib213 = test(
153
154
project = " stdLib213" ,
154
155
testCommand = " library/compile" ,
155
- updateCommand = " library/update"
156
+ updateCommand = " library/update" ,
157
+ extraSbtArgs = Seq (" -Dscala.build.compileWithDotty=true" )
156
158
)
157
159
158
160
// TODO @oderky? It got broken by #5458
@@ -168,6 +170,6 @@ class UpdateCategory
168
170
169
171
@ Category (Array (classOf [UpdateCategory ]))
170
172
class CommunityBuildUpdate extends CommunityBuildTest {
171
- override def test (project : String , testCommand : String , updateCommand : String ): Unit =
172
- super .test(project, updateCommand, null )
173
+ override def test (project : String , testCommand : String , updateCommand : String , extraSbtArgs : Seq [ String ] ): Unit =
174
+ super .test(project, updateCommand, null , extraSbtArgs )
173
175
}
0 commit comments