Skip to content

Commit

Permalink
BLD: skip documentation build in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Kohr committed Nov 2, 2016
1 parent db91622 commit 0793e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ script:
# Invoke also the alternative way of running the unit tests
- python -c "import odl; odl.test()"
# Build the Sphinx doc (only for Python 3.5 and the master branch)
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" && "$TRAVIS_BRANCH" == "master" ]]; then
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
cd $TRAVIS_BUILD_DIR/doc/source && python generate_doc.py && cd -;
travis-sphinx -n -s $TRAVIS_BUILD_DIR/doc/source build;
fi
Expand All @@ -64,6 +64,6 @@ after_success:
- coveralls
# Deploy the Sphinx doc to gh-pages (only for Python 3.5 and the master branch)
# See https://github.com/Syntaf/travis-sphinx
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" && "$TRAVIS_BRANCH" == "master" ]]; then
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
travis-sphinx deploy;
fi

0 comments on commit 0793e14

Please sign in to comment.