Skip to content

Commit

Permalink
Only run tut in Scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jcazevedo committed Aug 8, 2019
1 parent 1c8afb5 commit 526a9cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ script:
- >
sbt coverage
"++$TRAVIS_SCALA_VERSION test"
"++$TRAVIS_SCALA_VERSION tut"
"++$TRAVIS_SCALA_VERSION doc"
"++$TRAVIS_SCALA_VERSION publishLocal"
# Compile example project
- (cd example; sbt ++$TRAVIS_SCALA_VERSION test)

# check if there are no changes after `tut` runs
# Run tut and check if there are no changes in docs.
#
# We're running tut only in Scala 2.12 because it fails the compile step in
# the presence of comments in 2.13: https://github.com/tpolecat/tut/issues/246
- if [[ $TRAVIS_SCALA_VERSION =~ ^2\.12.* ]]; then
sbt "++$TRAVIS_SCALA_VERSION tut";
git diff --exit-code;
fi

Expand Down

0 comments on commit 526a9cc

Please sign in to comment.