From 28ebfe78f2a16823db0ead4e2a28eb217c4c9dbb Mon Sep 17 00:00:00 2001 From: Olga Botvinnik Date: Fri, 7 Nov 2014 19:05:15 -0500 Subject: [PATCH] deploy docs from things named "v*.*.*" --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 120d3968..61bb9e78 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,9 +48,9 @@ after_script: - sudo pip install -r doc/requirements.txt --use-mirrors - RELEASE=release - MASTER=master - - if [[ $TRAVIS_BRANCH == "*$RELEASE*" ]] ; then export DEPLOY_HTML_DIR=docs ; fi + - if [[ $TRAVIS_BRANCH == "v*.*.*" ]] ; then export DEPLOY_HTML_DIR=docs ; fi - if [[ $TRAVIS_BRANCH == "$MASTER" ]] ; then export DEPLOY_HTML_DIR=docs-dev ; fi - - if [[ $TRAVIS_BRANCH == "*$RELEASE*" ]] || [[ $TRAVIS_BRANCH == "$MASTER" ]] ; then cd doc ; make setup_gh_pages ; make generate ; make deploy ; fi + - if [[ $TRAVIS_BRANCH == "v*.*.*" ]] || [[ $TRAVIS_BRANCH == "$MASTER" ]] ; then cd doc ; make setup_gh_pages ; make generate ; make deploy ; fi # For slack notifications notifications: