summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-25 22:33:23 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-26 00:00:29 -0800
commit2a59977d9c4aa23513d2c38a9fa151f9c11e8dc0 (patch)
tree6a16d7db4538e73c1fe53f2fda812f2d12e71cf8 /build.sc
parent08e27d9b94e38f64f6680828c64ab3c0a8f5537f (diff)
downloadmill-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-xbuild.sc23
1 files changed, 16 insertions, 7 deletions
diff --git a/build.sc b/build.sc
index 77a6b4a2..396c1182 100755
--- a/build.sc
+++ b/build.sc
@@ -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 = {