summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-01-12 20:56:11 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-01-12 20:58:49 -0800
commit9cc010127b0b631c838db666200f293d0cf9ac37 (patch)
tree01356ed616b834756ae1c51731bd64e06987a682
parent12a8793392704adc6b469e76ac3a6d4a9bf4dda8 (diff)
downloadmill-9cc010127b0b631c838db666200f293d0cf9ac37.tar.gz
mill-9cc010127b0b631c838db666200f293d0cf9ac37.tar.bz2
mill-9cc010127b0b631c838db666200f293d0cf9ac37.zip
split up travis build into 3 workers, one testing each stage of the bootstrapping
-rw-r--r--.travis.yml9
-rwxr-xr-xci/test.sh12
-rwxr-xr-xci/test2.sh15
-rwxr-xr-xci/test3.sh (renamed from test.sh)2
4 files changed, 34 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 48e40753..3e26f15f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,9 +8,14 @@ scala:
jdk:
- oraclejdk8
-script:
- - "./test.sh"
+matrix:
+ include:
+ - env: CI_SCRIPT=ci/test.sh
+ - env: CI_SCRIPT=ci/test2.sh
+ - env: CI_SCRIPT=ci/test3.sh
+script:
+ - "$CI_SCRIPT"
cache:
directories:
- $HOME/.sbt/0.13/dependency
diff --git a/ci/test.sh b/ci/test.sh
new file mode 100755
index 00000000..b03523e1
--- /dev/null
+++ b/ci/test.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -eux
+
+# Starting from scratch...
+git clean -xdf
+
+# First build & run tests using SBT
+sbt core/test scalalib/test scalajslib/test
+sbt integration/test
+sbt bin/test:assembly
+
diff --git a/ci/test2.sh b/ci/test2.sh
new file mode 100755
index 00000000..2ab4bca2
--- /dev/null
+++ b/ci/test2.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+set -eux
+
+# Starting from scratch...
+git clean -xdf
+
+
+sbt bin/test:assembly
+# Run tests using
+bin/target/mill core.test
+bin/target/mill scalalib.test
+bin/target/mill scalajslib.test
+bin/target/mill integration.test
+bin/target/mill devAssembly
diff --git a/test.sh b/ci/test3.sh
index 916a5d78..91ce02b3 100755
--- a/test.sh
+++ b/ci/test3.sh
@@ -6,8 +6,6 @@ set -eux
git clean -xdf
# First build & run tests using SBT
-sbt core/test scalalib/test scalajslib/test
-sbt integration/test
sbt bin/test:assembly
# Build Mill using SBT