From 1c837992180a2ca86cbde4248be1a23749751e14 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Thu, 1 Jun 2017 09:19:06 +0200 Subject: [PATCH] Check that README.md doesn't change after a tut run on CI --- scripts/travis.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/travis.sh b/scripts/travis.sh index 8e1059c33..7d017215c 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -111,7 +111,18 @@ runJvmTests() { } 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 cmp -s README.md.orig README.md; then + echo "README.md doesn't change" + else + echo "Error: README.md not the same after a \"sbt tut\":" + diff -u README.md.orig README.md + exit 1 + fi } checkBinaryCompatibility() {