summaryrefslogtreecommitdiff
path: root/ci/test-mill-release.sh
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-04 20:41:28 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-04 20:47:46 -0800
commit00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f (patch)
treeeaa85b4b7fe6ec513f8545d5e1e43954e6e011ce /ci/test-mill-release.sh
parent74c4751ffc5abcc08f6dae0a336d76549161b444 (diff)
downloadmill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.tar.gz
mill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.tar.bz2
mill-00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f.zip
Cleanup
Diffstat (limited to 'ci/test-mill-release.sh')
-rwxr-xr-xci/test-mill-release.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/ci/test-mill-release.sh b/ci/test-mill-release.sh
new file mode 100755
index 00000000..52fc053d
--- /dev/null
+++ b/ci/test-mill-release.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+
+set -eux
+
+# Starting from scratch...
+git clean -xdf
+
+# First build using SBT
+sbt bin/test:assembly
+
+# Build Mill using SBT
+target/bin/mill --all \
+ moduledefs.publishLocal \
+ core.publishLocal \
+ scalalib.publishLocal \
+ scalaworker.publishLocal \
+ scalajslib.publishLocal \
+ scalajslib.jsbridges[0.6].publishLocal \
+ scalajslib.jsbridges[1.0].publishLocal \
+ releaseAssembly
+
+mv out/releaseAssembly/dest/out.jar ~/mill-release
+
+git clean -xdf
+
+# Second build & run tests using Mill
+
+~/mill-release --all {core,scalalib,scalajslib}.test devAssembly
+~/mill-release integration.test mill.integration.AmmoniteTests
+~/mill-release integration.test "mill.integration.{AcyclicTests,BetterFilesTests,JawnTests}"
+~/mill-release devAssembly