summaryrefslogtreecommitdiff
path: root/ci/test4.sh
blob: fafe603bbaa1aa62e8a79ccb8f5f603189cb5797 (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
27
28
29
30
31
32
33
34
#!/usr/bin/env bash

set -eux

# Force travis to create a git HEAD otherwise common operations don't work
git checkout -B current

# Starting from scratch...
git clean -xdf

# First build using SBT
sbt bin/test:assembly

# Build Mill using SBT
~/mill-release --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