Skip to content

Commit ecdf25a

Browse files
author
Matthias Koeppe
committed
Travis doc deployment: Use TRAVIS_REPO_SLUG as default for DEPLOY_DOC_TO_REPOSITORY
1 parent 14b7d82 commit ecdf25a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis-deploy-doc.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# without any warranty.
66
set -e
77
if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${TRAVIS_BRANCH}" == "${DEPLOY_DOC_FROM_BRANCH}" && -r .travis_ci_gh_pages_deploy_key ]]; then
8+
if [[ -z "${DEPLOY_DOC_TO_REPOSITORY}" ]]; then
9+
DEPLOY_DOC_TO_REPOSITORY="${TRAVIS_REPO_SLUG}"
10+
fi
811
chmod 600 .travis_ci_gh_pages_deploy_key
912
eval `ssh-agent -s`
1013
ssh-add .travis_ci_gh_pages_deploy_key

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
language: python
66
matrix:
77
include:
8-
- env: CACHE_NAME=7.6 DEPLOY_DOC_FROM_BRANCH=master DEPLOY_DOC_TO_REPOSITORY=mkoeppe/sage_sample DEPLOY_DOC_TO_DIRECTORY=/ SAGE_SERVER=http://mirrors.xmission.com/sage/ SAGE_IMAGE=linux/64bit/sage-7.6-Ubuntu_12.04-x86_64.tar.bz2
8+
- env: CACHE_NAME=7.6 DEPLOY_DOC_FROM_BRANCH=master DEPLOY_DOC_TO_DIRECTORY=/ SAGE_SERVER=http://mirrors.xmission.com/sage/ SAGE_IMAGE=linux/64bit/sage-7.6-Ubuntu_12.04-x86_64.tar.bz2
99
- env: CACHE_NAME=7.5.1 SAGE_SERVER=http://mirrors.xmission.com/sage/ SAGE_IMAGE=linux/64bit/sage-7.5.1-Ubuntu_12.04-x86_64.tar.bz2
1010
- env: CACHE_NAME=7.4 SAGE_SERVER=http://mirrors.xmission.com/sage/ SAGE_IMAGE=linux/64bit/sage-7.4-Ubuntu_12.04-x86_64.tar.bz2
1111
- env: CACHE_NAME=7.3 SAGE_SERVER=http://mirrors.xmission.com/sage/ SAGE_IMAGE=linux/64bit/sage-7.3-Ubuntu_12.04-x86_64.tar.bz2

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Automatically deploying documentation to GitHub pages using Travis CI
174174
$ echo "/gh-pages" >> .gitignore
175175
$ git add .gitignore
176176

177-
* Edit ``.travis.yml`` to adjust variables ``DEPLOY_DOC_...``
177+
* Optionally, edit ``.travis.yml`` to adjust variables ``DEPLOY_DOC_...``
178178

179179
* Commit all changes to GitHub. The Travis CI build should then run
180180
automatically and deploy it::

0 commit comments

Comments
 (0)