summaryrefslogtreecommitdiffstats
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorbendikro <bendikro@gmail.com>2014-09-21 16:37:29 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2014-09-25 14:11:51 +0100
commit66f2739be7cda3d610095cb8c1b1c9edbf006967 (patch)
treec71a980b5f69a6af4b4769e9937d3658154b0574 /docs/source/conf.py
parent8dc9a0773cf237033a00a936385257d6481e1715 (diff)
downloaddeluge-66f2739be7cda3d610095cb8c1b1c9edbf006967.tar.gz
deluge-66f2739be7cda3d610095cb8c1b1c9edbf006967.tar.bz2
deluge-66f2739be7cda3d610095cb8c1b1c9edbf006967.zip
Added .travis.yml (for travis-ci) and tox.ini files
Targets: * Runs the unit-tests for python 2.7 * Tests unit-test coverage * Try to build docs * Code style checks: * flake8 * isort Codes changes: * Fixed tests for httpdownloader (using tmp dir) * Implemented a couple of tests for Stats plugin but they fail to run on travis Issues: * Can't get py26 to work because of installing libtorrent through apt and the option system_site_packages fails for 2.6.
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 571a20f47..3af1381f2 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -14,6 +14,7 @@ import os
import sys
from datetime import date
+import mock
import pkg_resources
try:
@@ -22,6 +23,7 @@ except ImportError:
get_version = None
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+on_travis = os.environ.get('TRAVIS', None) == 'true'
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
@@ -55,7 +57,7 @@ MOCK_MODULES = ['deluge.ui.languages', 'deluge.ui.countries', 'deluge.ui.gtkui.g
'twisted.web', 'twisted.web.client', 'twisted.web.error',
'win32gui', 'win32api', 'win32con', '_winreg']
-if on_rtd:
+if on_rtd or on_travis:
MOCK_MODULES += ['libtorrent', 'pygtk', "gtk", "gobject", "gtk.gdk", "pango", "cairo", "pangocairo"]
for mod_name in MOCK_MODULES:
@@ -67,7 +69,7 @@ for mod_name in MOCK_MODULES:
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinxcontrib.napoleon']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinxcontrib.napoleon', 'sphinx.ext.coverage']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']