Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.extension
Commits
adcfb1d4
Commit
adcfb1d4
authored
May 27, 2014
by
André Anjos
💬
Browse files
Use external script to update sphinx documentation on server
parent
87203206
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
adcfb1d4
...
...
@@ -20,7 +20,6 @@ script:
-
./bin/coverage run --source=bob.extension ./bin/nosetests -sv
-
./bin/sphinx-build -b doctest doc sphinx
-
./bin/sphinx-build -b html doc sphinx
-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then echo -e "repo=${TRAVIS_REPO_SLUG}\nbranch=${TRAVIS_BRANCH}\ntag=${TRAVIS_TAG}\nbuild=${TRAVIS_JOB_NUMBER}\ncommit=${TRAVIS_COMMIT}\nos=${TRAVIS_OS_NAME}" > sphinx/.travis.info; tar cfz $(basename ${TRAVIS_REPO_SLUG})-${TRAVIS_COMMIT}.tar.gz sphinx; fi
after_success
:
-
coveralls
-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then curl -k -T $(basename ${TRAVIS_REPO_SLUG})-${TRAVIS_COMMIT}.tar.gz https://${DOCUSER}:${DOCPASS}@www.idiap.ch/software/bob/docs-upload/; fi
-
./scripts/upload-sphinx.sh
scripts/upload-sphinx.sh
0 → 100755
View file @
adcfb1d4
#!/usr/bin/env bash
# some checks
if
[
"
${
TRAVIS_PULL_REQUEST
}
"
!=
"false"
]
;
then
echo
"This is a pull request - not updating documentation"
;
exit
0
fi
pyver
=
$(
python
-c
'import sys; print "%d.%d" % sys.version_info[:2]'
)
pyver_req
=
"2.7"
if
[
"
${
pyver
}
"
!=
"
${
pyver_req
}
"
]
;
then
echo
"Not building against Python
${
pyver_req
}
- not uploading documentation"
;
exit
0
fi
info
=
sphinx/.travis.info
codename
=
$(
basename
${
TRAVIS_REPO_SLUG
}
)
-
${
TRAVIS_COMMIT
}
server
=
https://
${
DOCUSER
}
:
${
DOCPASS
}
@www.idiap.ch/software/bob/docs-upload/
# annotate
echo
-e
"repo=
${
TRAVIS_REPO_SLUG
}
\n
"
>>
${
info
}
echo
-e
"branch=
${
TRAVIS_BRANCH
}
\n
"
>>
${
info
}
echo
-e
"tag=
${
TRAVIS_TAG
}
\n
"
>>
${
info
}
echo
-e
"build=
${
TRAVIS_JOB_NUMBER
}
\n
"
>>
${
info
}
echo
-e
"commit=
${
TRAVIS_COMMIT
}
\n
"
>>
${
info
}
echo
-e
"os=
${
TRAVIS_OS_NAME
}
\n
"
>>
${
info
}
# compress
tar
cfj
${
codename
}
.tar.bz2 sphinx
# send
curl
-k
-T
${
codename
}
.tar.bz2
${
server
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment