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 language: python
python: matrix:
- '2.6' include:
- '2.7' - python: 2.6
- '3.2' - python: 2.7
- '3.3' env:
env: - secure: bCrXmS1k8aIOE8Ba6XuHyjUoQQPpYEC8kpTcMi9pNhyXRQyGEPLp85VgyfXga2Oxb73QcW1aW4AxGUxiR1OZjB4rBmKK2uKij2G2qq9uhcXkDqCzqqxslhtm3o8cxHEFNJWRhuSVVjS0m0RvaFuGRicdz7QdyHCLl29+Gqdkacs=
global: - secure: W81QkyB8I87JT6kqaW/eBYBngbtcpHXWXIQsBkjy06Z8V9gUGbUD5oWwCn6NKQ1hE1ZR/qELxsTtrfgvfiegCW9wci4qZzatq34DWvzKK20jacqn9hs0BnXCyI/+iQRf6vam1KAnvc4qmWzF/CfsuZqCku8TtU5ZtKk05D/K//0=
- secure: bCrXmS1k8aIOE8Ba6XuHyjUoQQPpYEC8kpTcMi9pNhyXRQyGEPLp85VgyfXga2Oxb73QcW1aW4AxGUxiR1OZjB4rBmKK2uKij2G2qq9uhcXkDqCzqqxslhtm3o8cxHEFNJWRhuSVVjS0m0RvaFuGRicdz7QdyHCLl29+Gqdkacs= - python: 3.2
- secure: W81QkyB8I87JT6kqaW/eBYBngbtcpHXWXIQsBkjy06Z8V9gUGbUD5oWwCn6NKQ1hE1ZR/qELxsTtrfgvfiegCW9wci4qZzatq34DWvzKK20jacqn9hs0BnXCyI/+iQRf6vam1KAnvc4qmWzF/CfsuZqCku8TtU5ZtKk05D/K//0= - python: 3.3
before_install: before_install:
- sudo add-apt-repository -y ppa:biometrics/bob - sudo add-apt-repository -y ppa:biometrics/bob
- sudo apt-get update -qq - sudo apt-get update -qq
......
...@@ -2,15 +2,12 @@ ...@@ -2,15 +2,12 @@
# some checks # some checks
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then 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 exit 0
fi fi
pyver=$(python -c 'import sys; print "%d.%d" % sys.version_info[:2]') if [ -z "${DOCUSER}" ] || [ -z "${DOCPASS}" ]; then
pyver_req="2.7" echo "Server username and/or password undefined - not uploading documentation";
if [ "${pyver}" != "${pyver_req}" ]; then
echo "Not building against Python ${pyver_req} - not uploading documentation";
exit 0 exit 0
fi 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