summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorLucas Hoffmann <lucc@users.noreply.github.com>2016-12-13 00:03:01 +0100
committerGitHub <noreply@github.com>2016-12-13 00:03:01 +0100
commit16b3dd216eeafccc6c8d025f13d2e3be50695ba2 (patch)
tree4e0a197731d63c3015d4a42e385e3198435f9200 /.travis.yml
parent639bd05a570086f506a26e4fb2154be1c8dc1d48 (diff)
parent615af60349f437d3d8ed568e746a2a746adfa0f8 (diff)
Merge pull request #916 from lucc/mini-travis
Start using travis.ci to check auto generated docs
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..d75faff7
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,27 @@
+language: python
+
+python:
+ # We can add more version strings here when we support other python
+ # versions.
+ - "2.7"
+
+# Install or mock dependencies for alot as the package has to be imported
+# during generation of the docs.
+install:
+ - pip install configobj urwid twisted python-magic
+ # urwid has to be installed when installing urwidtrees otherwise the process
+ # fails.
+ - pip install urwidtrees
+ # Mock all "difficult" dependencies of alot in order to be able to import
+ # alot when rebuilding the documentation. Notmuch would have to be
+ # installed by hand in order to get a recent enough version on travis.
+ - printf '%s = None\n' NotmuchError NullPointerError > notmuch.py
+ - touch gpgme.py
+
+script:
+ # First remove the generated docs.
+ - make -C docs cleanall
+ # Regenerate them
+ - make -C docs html SPHINXBUILD=true
+ # Check that the generated docs where already commited.
+ - git diff --exit-code