summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2018-02-27 15:38:28 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2018-02-27 15:38:28 -0800
commitebf326f565f6380b2021ad2162bf74e8f1ed50eb (patch)
treee5eca8282942abaaac3016cb67a620f9d1fa908d /.travis.yml
parentbf05183158c67c4ef1824c3b1296d401bc7754d8 (diff)
Build sphinx on Travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 75cf13969..791205723 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,6 +20,7 @@ env:
- TRAVIS_BOARD=feather52
- TRAVIS_TEST=qemu
- TRAVIS_TEST=unix
+ - TRAVIS_TEST=docs
addons:
artifacts:
@@ -30,12 +31,6 @@ addons:
notifications:
webhooks:
urls:
- - https://webhooks.gitter.im/e/c38b3bb3a3e131d955a1
- on_success: change # options: [always|never|change] default: always
- on_failure: always # options: [always|never|change] default: always
- on_start: never # options: [always|never|change] default: always
- webhooks:
- urls:
- https://rosie-ci.ngrok.io/travis
on_success: always
on_failure: always
@@ -56,6 +51,7 @@ before_script:
- ([[ $TRAVIS_BOARD != "feather52" ]] || sudo ports/nrf/drivers/bluetooth/download_ble_stack.sh)
# For coverage testing (upgrade is used to get latest urllib3 version)
- ([[ -z "$TRAVIS_TEST" ]] || sudo pip install --upgrade cpp-coveralls)
+ - ([[ $TRAVIS_TEST != "docs" ]] || sudo pip install Sphinx sphinx-rtd-theme)
- gcc --version
- ([[ -z "$TRAVIS_BOARD" ]] || arm-none-eabi-gcc --version)
- python3 --version
@@ -101,6 +97,11 @@ script:
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy -d basics float))
- echo -en 'travis_fold:end:test_mpy\\r'
+ - (echo 'Building docs' && echo -en 'travis_fold:start:build_docs\\r')
+ - ([[ $TRAVIS_TEST != "docs" ]] || sphinx-build -E -W -b html . _build/html)
+ - echo -en 'travis_fold:end:build_docs\\r'
+
+
# run coveralls coverage analysis (try to, even if some builds/tests failed)
#- (cd ports/unix && coveralls --root ../.. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)