Commit 93e0ab7a authored by André Anjos's avatar André Anjos 💬
Browse files

Allow for a .travis.yml selection of which build uploads the documentation

parent 4ae09d25
language: python
python:
- '2.6'
- '2.7'
- '3.2'
- '3.3'
env:
global:
matrix:
include:
- python: 2.6
- python: 2.7
env:
- secure: bCrXmS1k8aIOE8Ba6XuHyjUoQQPpYEC8kpTcMi9pNhyXRQyGEPLp85VgyfXga2Oxb73QcW1aW4AxGUxiR1OZjB4rBmKK2uKij2G2qq9uhcXkDqCzqqxslhtm3o8cxHEFNJWRhuSVVjS0m0RvaFuGRicdz7QdyHCLl29+Gqdkacs=
- secure: W81QkyB8I87JT6kqaW/eBYBngbtcpHXWXIQsBkjy06Z8V9gUGbUD5oWwCn6NKQ1hE1ZR/qELxsTtrfgvfiegCW9wci4qZzatq34DWvzKK20jacqn9hs0BnXCyI/+iQRf6vam1KAnvc4qmWzF/CfsuZqCku8TtU5ZtKk05D/K//0=
- python: 3.2
- python: 3.3
before_install:
- sudo add-apt-repository -y ppa:biometrics/bob
- sudo apt-get update -qq
......
......@@ -2,15 +2,12 @@
# some checks
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
echo "This is a pull request - not updating documentation";
echo "This is a pull request - not uploading 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";
if [ -z "${DOCUSER}" ] || [ -z "${DOCPASS}" ]; then
echo "Server username and/or password undefined - not uploading documentation";
exit 0
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment