summaryrefslogblamecommitdiff
path: root/ci/test-mill-bootstrap-0.sh
blob: 93f299db35a0a7ac5daac577d7bc4193bbea32d4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                          

                                      



              

              



                                                                             

                                        



              

              
                                          
                                               
#!/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 {main,scalalib,scalajslib}.test