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 3a0056a commit 08b30b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
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 08b30b6

Please sign in to comment.