Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sudo: false
language: python
python:
- '2.7'
Expand All @@ -10,3 +11,15 @@ script:
- 'python -m pycco.main pycco/main.py'
after_success:
- coveralls
matrix:
include:
- python: 3.5
env: CODESTYLE=true
- python: 2.7
env: TOXENV=py27
install: pip install tox
script: tox
- python: 3.6
env: TOXENV=py36
install: pip install tox
script: tox
2 changes: 2 additions & 0 deletions pycco/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ def next_file():
with open(path.join(outdir, "index.html"), "wb") as f:
f.write(generate_index.generate_index(generated_files, outdir))


__all__ = ("process", "generate_documentation")


Expand Down Expand Up @@ -630,6 +631,7 @@ def main():

monitor(sources, opts)


# Run the script.
if __name__ == "__main__":
main()
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
envlist = py2,py3,codestyle
envlist = py27,py36,codestyle

[testenv]
deps = -rrequirements.test.txt
commands = py.test
commands = pytest

[testenv:codestyle]
deps = pycodestyle
# E501 - line too long
commands = pycodestyle --ignore=E501
commands = pycodestyle --ignore=E501 pycco