diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-11-02 11:08:28 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:07 +0100 |
commit | 8a61ff432543a29234193cd1f7c14abd3f3d31a0 (patch) | |
tree | a8147561d307af862c295cfc8100d271063bb0dd /project/Build.scala | |
parent | 6a455fe6da5ff9c741d91279a2dc6fe2fb1b472f (diff) | |
download | dotty-8a61ff432543a29234193cd1f7c14abd3f3d31a0.tar.gz dotty-8a61ff432543a29234193cd1f7c14abd3f3d31a0.tar.bz2 dotty-8a61ff432543a29234193cd1f7c14abd3f3d31a0.zip |
Move compiler and compiler tests to compiler dir
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 62 |
1 files changed, 35 insertions, 27 deletions
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 */ |