From c8815118de5c09bf853c8fecdd23af2e803cdfd0 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Wed, 1 Nov 2017 00:34:02 +0100 Subject: [PATCH] Work around spurious issue during tut command in 2.12 --- scripts/travis.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/travis.sh b/scripts/travis.sh index 5200ce29c..3aba4d596 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -112,7 +112,14 @@ validateReadme() { # check that tut runs fine, and that the README doesn't change after a `sbt tut` mv README.md README.md.orig - sbt ++${SCALA_VERSION} tut + + if is212; then + TUT_SCALA_VERSION="2.12.1" # Later versions seem to make tut not see the coursier binaries + else + TUT_SCALA_VERSION="$SCALA_VERSION" + fi + + sbt ++${TUT_SCALA_VERSION} tut if cmp -s README.md.orig README.md; then echo "README.md doesn't change"