@@ -35,7 +35,6 @@ sealed trait CommunityProject:
35
35
private var published = false
36
36
37
37
val project : String
38
- val updateCommand : String
39
38
val testCommand : String
40
39
val publishCommand : String
41
40
val dependencies : List [CommunityProject ]
@@ -44,12 +43,6 @@ sealed trait CommunityProject:
44
43
45
44
final val projectDir = communitybuildDir.resolve(" community-projects" ).resolve(project)
46
45
47
- /** Is this project running in the test or update mode in the
48
- * context of the given suite? @see `run` for more details.
49
- */
50
- final def isUpdateMode (using suite : CommunityBuildTest ) =
51
- suite.isInstanceOf [CommunityBuildUpdate ]
52
-
53
46
/** Depending on the mode of operation, either
54
47
* runs the test or updates the project. Updating
55
48
* means that all the dependencies are fetched but
@@ -61,9 +54,8 @@ sealed trait CommunityProject:
61
54
* for more infrastructural details.
62
55
*/
63
56
final def run ()(using suite : CommunityBuildTest ) =
64
- val runCmd = if isUpdateMode then updateCommand else testCommand
65
- if ! isUpdateMode then dependencies.foreach(_.publish())
66
- suite.test(project, binaryName, runCommandsArgs :+ runCmd)
57
+ dependencies.foreach(_.publish())
58
+ suite.test(project, binaryName, runCommandsArgs :+ testCommand)
67
59
68
60
/** Publish this project to the local Maven repository */
69
61
final def publish (): Unit =
@@ -82,22 +74,19 @@ final case class MillCommunityProject(
82
74
baseCommand : String ,
83
75
dependencies : List [CommunityProject ] = Nil ) extends CommunityProject :
84
76
override val binaryName : String = " ./mill"
85
- override val updateCommand = s " $baseCommand.compileClasspath "
86
77
override val testCommand = s " $baseCommand.test "
87
78
override val publishCommand = s " $baseCommand.publishLocal "
88
79
override val runCommandsArgs = List (" -i" , " -D" , s " dottyVersion= $compilerVersion" )
89
80
90
81
final case class SbtCommunityProject (
91
82
project : String ,
92
83
sbtTestCommand : String ,
93
- sbtUpdateCommand : String ,
94
84
extraSbtArgs : List [String ] = Nil ,
95
85
dependencies : List [CommunityProject ] = Nil ,
96
86
sbtPublishCommand : String = null ) extends CommunityProject :
97
87
override val binaryName : String = " sbt"
98
88
private val baseCommand = s " ;clean ;set logLevel in Global := Level.Error ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++ $compilerVersion! "
99
89
override val testCommand = s " $baseCommand$sbtTestCommand"
100
- override val updateCommand = s " $baseCommand$sbtUpdateCommand"
101
90
override val publishCommand = s " $baseCommand$sbtPublishCommand"
102
91
103
92
override val runCommandsArgs : List [String ] =
@@ -142,102 +131,86 @@ object projects:
142
131
lazy val intent = SbtCommunityProject (
143
132
project = " intent" ,
144
133
sbtTestCommand = " test" ,
145
- sbtUpdateCommand = " update"
146
134
)
147
135
148
136
lazy val algebra = SbtCommunityProject (
149
137
project = " algebra" ,
150
138
sbtTestCommand = " coreJVM/compile" ,
151
- sbtUpdateCommand = " coreJVM/update"
152
139
)
153
140
154
141
lazy val scalacheck = SbtCommunityProject (
155
142
project = " scalacheck" ,
156
143
sbtTestCommand = " jvm/test" ,
157
- sbtUpdateCommand = " jvm/test:update" ,
158
144
sbtPublishCommand = " ;set jvm/publishArtifact in (Compile, packageDoc) := false ;jvm/publishLocal"
159
145
)
160
146
161
147
lazy val scalatest = SbtCommunityProject (
162
148
project = " scalatest" ,
163
149
sbtTestCommand = " ;scalacticDotty/clean;scalacticTestDotty/test;scalatestTestDotty/test" ,
164
- sbtUpdateCommand = " scalatest/update" ,
165
150
sbtPublishCommand = " ;scalacticDotty/publishLocal; scalatestDotty/publishLocal"
166
151
)
167
152
168
153
lazy val scalatestplusScalacheck = SbtCommunityProject (
169
154
project = " scalatestplus-scalacheck" ,
170
155
sbtTestCommand = " scalatestPlusScalaCheckJVM/test" ,
171
- sbtUpdateCommand = " scalatestPlusScalaCheckJVM/update" ,
172
156
sbtPublishCommand = " scalatestPlusScalaCheckJVM/publishLocal" ,
173
157
dependencies = List (scalatest, scalacheck)
174
158
)
175
159
176
160
lazy val scalaXml = SbtCommunityProject (
177
161
project = " scala-xml" ,
178
162
sbtTestCommand = " xml/test" ,
179
- sbtUpdateCommand = " xml/update"
180
163
)
181
164
182
165
lazy val scopt = SbtCommunityProject (
183
166
project = " scopt" ,
184
167
sbtTestCommand = " scoptJVM/compile" ,
185
- sbtUpdateCommand = " scoptJVM/update"
186
168
)
187
169
188
170
lazy val scalap = SbtCommunityProject (
189
171
project = " scalap" ,
190
172
sbtTestCommand = " scalap/compile" ,
191
- sbtUpdateCommand = " scalap/update"
192
173
)
193
174
194
175
lazy val squants = SbtCommunityProject (
195
176
project = " squants" ,
196
177
sbtTestCommand = " squantsJVM/compile" ,
197
- sbtUpdateCommand = " squantsJVM/update"
198
178
)
199
179
200
180
lazy val betterfiles = SbtCommunityProject (
201
181
project = " betterfiles" ,
202
182
sbtTestCommand = " dotty-community-build/compile" ,
203
- sbtUpdateCommand = " dotty-community-build/update"
204
183
)
205
184
206
185
lazy val ScalaPB = SbtCommunityProject (
207
186
project = " ScalaPB" ,
208
187
sbtTestCommand = " dotty-community-build/compile" ,
209
- sbtUpdateCommand = " dotty-community-build/update"
210
188
)
211
189
212
190
lazy val minitest = SbtCommunityProject (
213
191
project = " minitest" ,
214
192
sbtTestCommand = " dotty-community-build/compile" ,
215
- sbtUpdateCommand = " dotty-community-build/update"
216
193
)
217
194
218
195
lazy val fastparse = SbtCommunityProject (
219
196
project = " fastparse" ,
220
197
sbtTestCommand = " dotty-community-build/compile;dotty-community-build/test:compile" ,
221
- sbtUpdateCommand = " dotty-community-build/update"
222
198
)
223
199
224
200
lazy val stdLib213 = SbtCommunityProject (
225
201
project = " stdLib213" ,
226
202
sbtTestCommand = """ ;set scalacOptions in Global += "-Yerased-terms" ;library/compile""" ,
227
- sbtUpdateCommand = " library/update" ,
228
203
extraSbtArgs = List (" -Dscala.build.compileWithDotty=true" )
229
204
)
230
205
231
206
lazy val shapeless = SbtCommunityProject (
232
207
project = " shapeless" ,
233
208
sbtTestCommand = " test" ,
234
- sbtUpdateCommand = " update"
235
209
)
236
210
237
211
lazy val xmlInterpolator = SbtCommunityProject (
238
212
project = " xml-interpolator" ,
239
213
sbtTestCommand = " test" ,
240
- sbtUpdateCommand = " update"
241
214
)
242
215
243
216
lazy val effpi = SbtCommunityProject (
@@ -251,56 +224,47 @@ object projects:
251
224
// dropped in the 2.13 compatible release
252
225
253
226
// sbtTestCommand = ";set ThisBuild / useEffpiPlugin := false; effpi/test:compile; plugin/test:compile; benchmarks/test:compile; examples/test:compile; pluginBenchmarks/test:compile",
254
- // sbtUpdateCommand = ";set ThisBuild / useEffpiPlugin := false; effpi/test:update; plugin/test:update; benchmarks/test:update; examples/test:update; pluginBenchmarks/test:update"
255
227
256
228
sbtTestCommand = " ;set ThisBuild / useEffpiPlugin := false; effpi/test:compile; benchmarks/test:compile; examples/test:compile; pluginBenchmarks/test:compile" ,
257
- sbtUpdateCommand = " ;set ThisBuild / useEffpiPlugin := false; effpi/test:update; benchmarks/test:update; examples/test:update; pluginBenchmarks/test:update"
258
229
)
259
230
260
231
// TODO @odersky? It got broken by #5458
261
232
// val pdbp = test(
262
233
// project = "pdbp",
263
234
// sbtTestCommand = "compile",
264
- // sbtUpdateCommand = "update"
265
235
// )
266
236
267
237
lazy val sconfig = SbtCommunityProject (
268
238
project = " sconfig" ,
269
239
sbtTestCommand = " sconfigJVM/test" ,
270
- sbtUpdateCommand = " sconfigJVM/update"
271
240
)
272
241
273
242
lazy val zio = SbtCommunityProject (
274
243
project = " zio" ,
275
244
sbtTestCommand = " testJVMDotty" ,
276
- sbtUpdateCommand = " update"
277
245
)
278
246
279
247
lazy val munit = SbtCommunityProject (
280
248
project = " munit" ,
281
249
sbtTestCommand = " testsJVM/test" ,
282
- sbtUpdateCommand = " munitJVM/update" ,
283
250
)
284
251
285
252
lazy val scodecBits = SbtCommunityProject (
286
253
project = " scodec-bits" ,
287
254
sbtTestCommand = " coreJVM/test" ,
288
- sbtUpdateCommand = " coreJVM/update" ,
289
255
sbtPublishCommand = " coreJVM/publishLocal" ,
290
256
dependencies = List (scalatest, scalacheck, scalatestplusScalacheck)
291
257
)
292
258
293
259
lazy val scodec = SbtCommunityProject (
294
260
project = " scodec" ,
295
261
sbtTestCommand = " unitTests/test" ,
296
- sbtUpdateCommand = " ;coreJVM/update; unitTests/update" ,
297
262
dependencies = List (scalatest, scalacheck, scalatestplusScalacheck, scodecBits)
298
263
)
299
264
300
265
lazy val scalaParserCombinators = SbtCommunityProject (
301
266
project = " scala-parser-combinators" ,
302
267
sbtTestCommand = " parserCombinators/test" ,
303
- sbtUpdateCommand = " parserCombinators/update"
304
268
)
305
269
306
270
end projects
@@ -395,7 +359,3 @@ class CommunityBuildTest:
395
359
end CommunityBuildTest
396
360
397
361
class TestCategory
398
- class UpdateCategory
399
-
400
- @ Category (Array (classOf [UpdateCategory ]))
401
- class CommunityBuildUpdate extends CommunityBuildTest
0 commit comments