Skip to content

Commit

Permalink
Updated ci tests.
Browse files Browse the repository at this point in the history
* Reverted Ammonite caching workaround (a796f0a) now that it's fixed

* Changed ci/test-mill-0.sh to use interactive mode due to intermittent client failures to connect to server in travis

* Added ci/test-mill-bootstrap.sh (ci/test-mill-0.sh with bootstrapping) and use it on oraclejdk9 instead of ci/test-mill-0.sh

* Upgraded mill used for ci to 0.1.7-29-f5097f
  • Loading branch information
robby-phd committed Apr 2, 2018
1 parent f5097f9 commit f972d71
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cache:
- '%LOCALAPPDATA%\Coursier\cache -> build.sc'

install:
- SET MILL_URL=https://github.com/lihaoyi/mill/releases/download/0.1.7/0.1.7-8-b913c6
- SET MILL_URL=https://github.com/lihaoyi/mill/releases/download/0.1.7/0.1.7-29-f5097f

build_script:
- if [%COMPILER%]==[msys2] (
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dist: trusty
matrix:
include:
- stage: build
env: CI_SCRIPT=ci/test-mill-0.sh
env: CI_SCRIPT=ci/test-mill-bootstrap.sh
jdk: oraclejdk9
- stage: build
env: CI_SCRIPT=ci/test-mill-0.sh
Expand Down Expand Up @@ -36,7 +36,7 @@ matrix:
jdk: oraclejdk8

script:
- curl -L -o ~/bin/mill https://github.com/lihaoyi/mill/releases/download/0.1.7/0.1.7-8-b913c6 && chmod +x ~/bin/mill
- curl -L -o ~/bin/mill https://github.com/lihaoyi/mill/releases/download/0.1.7/0.1.7-29-f5097f && chmod +x ~/bin/mill
- export PATH=~/bin/mill:$PATH
- "$CI_SCRIPT"

Expand Down
4 changes: 2 additions & 2 deletions ci/test-mill-0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ set -eux
# Starting from scratch...
git clean -xdf

# Run tests using Mill built using SBT
mill all {clientserver,main,scalalib,scalajslib}.test
# Run tests
mill -i all {clientserver,main,scalalib,scalajslib}.test
2 changes: 1 addition & 1 deletion ci/test-mill-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ set -eux
# Starting from scratch...
git clean -xdf

# Run tests using Mill built using SBT
# Run tests
mill integration.test "mill.integration.local.{JawnTests,BetterFilesTests,UpickleTests}"
2 changes: 1 addition & 1 deletion ci/test-mill-2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ set -eux
# Starting from scratch...
git clean -xdf

# Run tests using Mill built using SBT
# Run tests
mill integration.test "mill.integration.local.{AcyclicTests,AmmoniteTests}"
26 changes: 26 additions & 0 deletions ci/test-mill-bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
4 changes: 1 addition & 3 deletions ci/test-mill-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ git clean -xdf
# Build Mill
mill -i dev.assembly

rm -fR ~/.mill

# Second build & run tests using Mill
# Second build & run tests
out/dev/assembly/dest/mill -i all {clientserver,main,scalalib,scalajslib}.test

7 changes: 3 additions & 4 deletions ci/test-mill-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ set -eux
# Starting from scratch...
git clean -xdf

# Build Mill
ci/publish-local.sh

# Clean up
git clean -xdf

rm -fR ~/.mill

# Second build & run tests using Mill

# Run tests
~/mill-release -i integration.test "mill.integration.forked.{AcyclicTests,UpickleTests,PlayJsonTests}"

0 comments on commit f972d71

Please sign in to comment.