diff options
Diffstat (limited to 'ci/test-mill-bootstrap-1.sh')
-rwxr-xr-x | ci/test-mill-bootstrap-1.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ci/test-mill-bootstrap-1.sh b/ci/test-mill-bootstrap-1.sh new file mode 100755 index 00000000..00b4b857 --- /dev/null +++ b/ci/test-mill-bootstrap-1.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +set -eux + +# Starting from scratch... +git clean -xdf + +# First build +./mill -i all __.publishLocal launcher +cp out/launcher/dest/mill ~/mill-1 + +# Clean up +git clean -xdf + +rm -rf ~/.mill + +# Differentiate first and second builds +echo "Build 2" > info.txt && git add info.txt && git commit -m "Add info.txt" + +# Second build +~/mill-1 -i all __.publishLocal launcher +cp out/launcher/dest/mill ~/mill-2 + +# Clean up +git clean -xdf + +rm -rf ~/.mill + +# Use second build to run tests using Mill +~/mill-2 -i all contrib.{twirllib,playlib,scalapblib,scoverage}.test |