diff --git a/.travis.yml b/.travis.yml index d9d7c4fb..24adf95e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ language: scala +addons: + apt: + packages: + - graphviz + before_install: - cat /etc/hosts # optionally check the content *before* - sudo hostname "$(hostname | cut -c1-63)" diff --git a/build.sbt b/build.sbt index c7b8889c..595918a1 100644 --- a/build.sbt +++ b/build.sbt @@ -23,7 +23,20 @@ crossScalaVersions in ThisBuild := { lazy val `scala-parser-combinators` = crossProject.in(file(".")). settings(scalaModuleSettings: _*). settings( - name := "scala-parser-combinators-root" + name := "scala-parser-combinators-root", + apiMappings += (scalaInstance.value.libraryJar -> + url(s"https://www.scala-lang.org/api/${scalaVersion.value}/")), + scalacOptions in (Compile, doc) ++= Seq( + "-diagrams", + "-doc-source-url", + s"https://github.com/scala/scala-parser-combinators/tree/v${version.value}€{FILE_PATH}.scala", + "-sourcepath", + (baseDirectory in LocalRootProject).value.absolutePath, + "-doc-title", + "Scala Parser Combinators", + "-doc-version", + version.value + ) ). jvmSettings( // Mima uses the name of the jvm project in the artifactId