-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discover - break overridesRoutes into fixed size chunks (#509)
* Discover - break overridesRoutes into fixed size chunks * Discover - simplify lambda creation * add LargeProjectTests * LargeProjectTests: remove Ydelambdafy
- Loading branch information
Showing
6 changed files
with
325 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,293 @@ | ||
import mill._, scalalib._ | ||
|
||
trait TModule extends SbtModule { | ||
def scalaVersion = "2.12.7" | ||
} | ||
|
||
object foo extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(foo.common.one) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(foo.common.two) | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq(foo.common.one) | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(foo.domain.one) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(foo.domain.two) | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq(foo.domain.three) | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(foo.server.one) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(foo.server.two) | ||
} | ||
} | ||
} | ||
|
||
object bar extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq(foo.common.three) | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(bar.common.one) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(bar.common.two) | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq(foo.domain.three) | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(bar.domain.one) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(bar.domain.two) | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq(foo.server.one) | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(bar.server.one) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(bar.server.two) | ||
} | ||
} | ||
} | ||
|
||
object ham extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq(bar.common.one) | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(bar.common.two) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(bar.common.three) | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq(bar.domain.three) | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq(bar.domain.two, ham.common.three) | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq(bar.domain.two) | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
} | ||
|
||
object eggs extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
} | ||
|
||
object salt extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
} | ||
|
||
object pepper extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
} | ||
|
||
object oregano extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
} | ||
|
||
object rosmarin extends Module { | ||
object common extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object domain extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
object server extends Module { | ||
object one extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object two extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
object three extends TModule { | ||
def moduleDeps = Seq() | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...tion/test/resources/large-project/foo/common/one/src/main/scala/foo/common/one/Main.scala
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 @@ | ||
package foo.common.one | ||
|
||
object Main extends App { | ||
println("large-project") | ||
} |
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,19 @@ | ||
package mill.integration | ||
|
||
import mill.util.ScriptTestSuite | ||
import utest._ | ||
|
||
class LargeProjectTests(fork: Boolean) | ||
extends ScriptTestSuite(fork) { | ||
def workspaceSlug: String = "large-project" | ||
def scriptSourcePath: os.Path = os.pwd / 'integration / 'test / 'resources / workspaceSlug | ||
|
||
val tests = Tests{ | ||
initWorkspace() | ||
'test - { | ||
|
||
assert(eval("foo.common.one.compile")) | ||
} | ||
|
||
} | ||
} |
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
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