Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
python:
- 2.6
- 2.7
install:
# 12.04 LTS ships an outdated texlive https://launchpad.net/bugs/712521
- sudo add-apt-repository --yes ppa:texlive-backports/ppa
- sudo apt-get update -yq2
- sudo apt-get install -yq2 --no-install-recommends dvipng graphviz imagemagick lilypond source-highlight texlive-latex-base
script:
- time python tests/testasciidoc.py update
- python asciidoc.py --doctest
- python asciidocapi.py
- time python tests/testasciidoc.py run
- git clean -f tests/data
3 changes: 3 additions & 0 deletions asciidocapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,6 @@ def execute(self, infile, outfile=None, backend=None):
import doctest
options = doctest.NORMALIZE_WHITESPACE + doctest.ELLIPSIS
doctest.testmod(optionflags=options)
test_result = doctest.testmod(optionflags=options)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are calling doctest.testmod() twice here. Is this intended? If so, why?

Michel

print(test_result)
sys.exit(test_result.failed > 0)