Check that README.md doesn't change after a tut run on CI

This commit is contained in:
Alexandre Archambault 2017-06-01 09:19:06 +02:00
parent f43d8d59ad
commit 1c83799218
1 changed files with 11 additions and 0 deletions

View File

@ -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() {