diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-25 22:33:23 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-26 00:00:29 -0800 |
commit | 2a59977d9c4aa23513d2c38a9fa151f9c11e8dc0 (patch) | |
tree | 6a16d7db4538e73c1fe53f2fda812f2d12e71cf8 /build.sc | |
parent | 08e27d9b94e38f64f6680828c64ab3c0a8f5537f (diff) | |
download | mill-2a59977d9c4aa23513d2c38a9fa151f9c11e8dc0.tar.gz mill-2a59977d9c4aa23513d2c38a9fa151f9c11e8dc0.tar.bz2 mill-2a59977d9c4aa23513d2c38a9fa151f9c11e8dc0.zip |
Delete SBT build, use Mill for CI & development
Also re-organize the test matrix to split out the unit & integration tests into 3 separate builds, and removing the integration tests from the `-dev` and `-mill` jobs. That should speed up the test run while running all tests and ensuring the dev/release assemblies work
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -236,6 +236,12 @@ object dev extends MillModule{ java.nio.file.Files.setPosixFilePermissions(outputPath.toNIO, perms) PathRef(outputPath) } + + def assembly = T{ + mv(super.assembly().path, T.ctx().dest / 'mill) + PathRef(T.ctx().dest / 'mill) + } + def prependShellScript = launcherScript(forkArgs(), runClasspath().map(_.path.toString)) def run(args: String*) = T.command{ @@ -257,14 +263,17 @@ object dev extends MillModule{ def release = T{ - createAssembly( - dev.runClasspath().map(_.path), - prependShellScript = launcherScript( - Seq("-DMILL_VERSION=" + publishVersion()._2), - Agg("$0") - ) - + mv( + createAssembly( + dev.runClasspath().map(_.path), + prependShellScript = launcherScript( + Seq("-DMILL_VERSION=" + publishVersion()._2), + Agg("$0") + ) + ).path, + T.ctx().dest / 'mill ) + PathRef(T.ctx().dest / 'mill) } val isMasterCommit = { |