Build the docs on Travis

This commit is contained in:
Kovid Goyal 2018-06-08 11:42:54 +05:30
parent 68394cebe3
commit 6247270011
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
4 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,5 @@
git:
depth: false
matrix:
fast_finish: true
include:
@ -133,6 +135,9 @@ install: |
cd ..
popd
fi
if [[ "$BUILD_PKG" == "linux-package" ]]; then
pip install sphinx
fi
fi
pkg-config --cflags harfbuzz
if [[ "$TRAVIS_OS_NAME" != 'osx' ]]; then
@ -149,4 +154,5 @@ script:
- if grep -Inr '\s$' kitty kitty_tests kittens docs *.py *.asciidoc *.rst .gitattributes .gitignore; then echo Trailing whitespace found, aborting.; exit 1; fi
- if [[ -z $SANITIZE_ARG ]]; then $PYTHON test.py; else ./asan-launcher test.py; fi
- if [[ "$RUN_FLAKE" == "1" ]]; then flake8 --count .; fi
- if [[ "$BUILD_PKG" == "linux-package" ]]; then make FAIL_WARN=-W man && make FAIL_WARN=-W html; fi
- if [[ ! -z "$BUILD_PKG" ]]; then $PYTHON setup.py $BUILD_PKG; fi

View File

@ -34,7 +34,7 @@ app: rendered_logo
python3 setup.py kitty.app $(VVAL)
man:
$(MAKE) -C docs man
$(MAKE) FAIL_WARN=$(FAIL_WARN) -C docs man
html:
$(MAKE) -C docs html
$(MAKE) FAIL_WARN=$(FAIL_WARN) -C docs html

View File

@ -2,8 +2,8 @@
#
# You can set these variables from the command line.
SPHINXOPTS = -T -W
SPHINXBUILD = kitty +launch /usr/bin/sphinx-build
SPHINXOPTS = -T $(FAIL_WARN)
SPHINXBUILD = python3 .. +launch $(shell which sphinx-build)
SPHINXPROJ = kitty
SOURCEDIR = .
BUILDDIR = _build
@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

View File

@ -55,11 +55,11 @@ def run_tag(args):
def run_man(args):
call('make man', cwd=docs_dir)
call('make FAIL_WARN=-W man', cwd=docs_dir)
def run_html(args):
call('make html', cwd=docs_dir)
call('make FAIL_WARN=-W html', cwd=docs_dir)
def run_website(args):