From 8a61ff432543a29234193cd1f7c14abd3f3d31a0 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Wed, 2 Nov 2016 11:08:28 +0100 Subject: Move compiler and compiler tests to compiler dir --- project/Build.scala | 62 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 27 deletions(-) (limited to 'project/Build.scala') diff --git a/project/Build.scala b/project/Build.scala index ead692b1d..68ca8a1d1 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -62,6 +62,40 @@ object DottyBuild extends Build { resourceDirectory in Compile := baseDirectory.value / "resources" ) + /** Projects -------------------------------------------------------------- */ + lazy val dotty = project.in(file(".")). + dependsOn(`dotty-compiler`). + dependsOn(`dotty-library`). + dependsOn(`dotty-interfaces`). + settings( + addCommandAlias( + "partest", + ";packageAll" + + ";dotty-compiler/test:runMain dotc.build" + + ";lockPartestFile" + + ";dotty-compiler/test:test" + + ";runPartestRunner" + + ";bin/test" // script tests need to run after the unit tests + ) ++ + addCommandAlias( + "partest-only", + ";packageAll" + + ";dotty-compiler/test:runMain dotc.build" + + ";lockPartestFile" + + ";dotty-compiler/test:test-only dotc.tests" + + ";runPartestRunner" + ) ++ + addCommandAlias( + "partest-only-no-bootstrap", + ";packageAll" + + ";lockPartestFile" + + ";dotty-compiler/test:test-only dotc.tests" + + ";runPartestRunner" + ) + ). + settings(publishing) + + lazy val `dotty-interfaces` = project.in(file("interfaces")). settings( // Do not append Scala versions to the generated artifacts @@ -73,7 +107,7 @@ object DottyBuild extends Build { ). settings(publishing) - lazy val `dotty-compiler` = project.in(file(".")). + lazy val `dotty-compiler` = project.in(file("compiler")). dependsOn(`dotty-interfaces`). dependsOn(`dotty-library`). settings(sourceStructure). @@ -237,32 +271,6 @@ object DottyBuild extends Build { ("-DpartestParentID=" + pid) :: tuning ::: agentOptions ::: travis_build ::: path.toList } ). - settings( - addCommandAlias( - "partest", - ";packageAll" + - ";test:runMain dotc.build" + - ";lockPartestFile" + - ";dotty-compiler/test:test" + - ";runPartestRunner" + - ";bin/test" // script tests need to run after the unit tests - ) ++ - addCommandAlias( - "partest-only", - ";packageAll" + - ";test:runMain dotc.build" + - ";lockPartestFile" + - ";dotty-compiler/test:test-only dotc.tests" + - ";runPartestRunner" - ) ++ - addCommandAlias( - "partest-only-no-bootstrap", - ";packageAll" + - ";lockPartestFile" + - ";dotty-compiler/test:test-only dotc.tests" + - ";runPartestRunner" - ) - ). settings(publishing) /* Contains unit tests for the scripts */ -- cgit v1.2.3