Check docs (#509)

* Require HTML docs to build cleanly for Travis
This commit is contained in:
Neil 2018-07-05 10:11:29 +08:00 committed by GitHub
parent e425b60ff3
commit 1e763b720b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View File

@ -19,19 +19,22 @@ install:
- pip install ecdsa - pip install ecdsa
- pip install plyvel - pip install plyvel
- pip install pycodestyle - pip install pycodestyle
- pip install pyrocksdb
- pip install tribus-hash
- pip install pytest-cov
- pip install pylru - pip install pylru
- pip install pyrocksdb
- pip install pytest-cov
- pip install Sphinx
# hashes
- pip install tribus-hash
- pip install blake256 - pip install blake256
- pip install x11_hash - pip install x11_hash
- pip install xevan_hash - pip install xevan_hash
- pip install quark_hash - pip install quark_hash
- pip install git+https://github.com/goacoincore/neoscrypt - pip install git+https://github.com/goacoincore/neoscrypt
# command to run tests # command to run tests
script: script:
- pytest --cov=server --cov=lib --cov=wallet - pytest --cov=server --cov=lib --cov=wallet
- pycodestyle server/*.py lib/*.py - pycodestyle server/*.py lib/*.py
- sh -c "cd docs && make html"
# Dont report coverage from nightly # Dont report coverage from nightly
after_success: after_success:
- if [[ $(python3 -V 2>&1) == *"Python 3.6"* ]]; then - if [[ $(python3 -V 2>&1) == *"Python 3.6"* ]]; then

View File

@ -2,7 +2,7 @@
# #
# You can set these variables from the command line. # You can set these variables from the command line.
SPHINXOPTS = SPHINXOPTS = -W
SPHINXBUILD = sphinx-build SPHINXBUILD = sphinx-build
SPHINXPROJ = ElectrumX SPHINXPROJ = ElectrumX
SOURCEDIR = . SOURCEDIR = .