summaryrefslogtreecommitdiff
path: root/ci/test-mill-bootstrap.sh
blob: be2b5c3a9f72adf60b2673a2bb5e249fbbaba4da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

set -eux

# Starting from scratch...
git clean -xdf

# First build
mill -i all __.publishLocal release
mv out/release/dest/mill ~/mill-1

# Clean up
git clean -xdf

# 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 release
mv out/release/dest/mill ~/mill-2

# Clean up
git clean -xdf

# Use second build to run tests using Mill
~/mill-2 -i all {clientserver,main,scalalib,scalajslib}.test