diff --git a/.travis.yml b/.travis.yml index c88bc8595c..79ebba586a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ env: - GROUP=js/base - GROUP=js/services - GROUP=js/tree + - GROUP=docs before_install: - pip install --upgrade pip @@ -30,10 +31,14 @@ before_install: - npm upgrade -g npm - npm install - | - if [[ $GROUP == js* ]]; then + if [[ $GROUP == js* ]]; then npm install -g casperjs@1.1.3 phantomjs-prebuilt@2.1.7 fi - git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels + - | + if [[ $GROUP == docs ]]; then + pip install -r docs/doc-requirements.txt + fi install: - pip install -f travis-wheels/wheelhouse file://$PWD#egg=notebook[test] @@ -43,6 +48,7 @@ install: script: - 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi' - 'if [[ $GROUP == python ]]; then nosetests -v --with-coverage --cover-package=notebook notebook; fi' + - 'if [[ $GROUP == docs ]]; then make -C docs/ html; fi' matrix: include: @@ -50,6 +56,9 @@ matrix: env: GROUP=python - python: 3.4 env: GROUP=python + exclude: + - python: 2.7 + env: GROUP=docs after_success: - codecov diff --git a/docs/doc-requirements.txt b/docs/doc-requirements.txt index 52a2ed2fb2..fbdd21cd97 100644 --- a/docs/doc-requirements.txt +++ b/docs/doc-requirements.txt @@ -1,2 +1,3 @@ sphinx>=1.3.6 -sphinx-rtd-theme \ No newline at end of file +sphinx-rtd-theme +nbsphinx==0.2.14