Search code examples
travis-cipandocspecs2

specs2 html output in travis


My build.sbt contains dependencies

"org.specs2" %% "specs2-core" % "3.8.9" % "test",
"org.specs2" %% "specs2-html" % "3.8.9" % "test",

and also

testOptions in Test += Tests.Argument("html", "console")

When I run locally, HTML output is generated.

In .travis.yml I declare:

addons:
  apt_packages:
    - pandoc

script:
  - sbt test

Builds on Travis fail with:

[error] pandoc: Unknown reader: markdown+pipe_tables+auto_identifiers+header_attributes+inline_code_attributes+markdown_attribute

Here is a minimal replication of the issue:

How can I configure Travis's pandoc to include these readers?


Solution

  • Travis' default Ubuntu dist (Precise) does not have access to version of pandoc recent enough to handle markdown.

    It is necessary to specify a more recent dist (Trusty).

    dist: trusty
    
    addons:
      apt_packages:
        - pandoc