Updated Branches: refs/heads/trunk 46ff3f545 -> a06cd308c
Add script for triggering rtf build (curl is not available on build slave). Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a06cd308 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a06cd308 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a06cd308 Branch: refs/heads/trunk Commit: a06cd308c9aaa908386d2a1390817049723f28af Parents: 46ff3f5 Author: Tomaz Muraus <[email protected]> Authored: Sun Aug 4 23:40:44 2013 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Sun Aug 4 23:41:26 2013 +0200 ---------------------------------------------------------------------- contrib/trigger_rtd_build.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/a06cd308/contrib/trigger_rtd_build.py ---------------------------------------------------------------------- diff --git a/contrib/trigger_rtd_build.py b/contrib/trigger_rtd_build.py new file mode 100755 index 0000000..b132e54 --- /dev/null +++ b/contrib/trigger_rtd_build.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import sys +import urllib2 + + +key = sys.argv[1] +url = 'http://readthedocs.org/build/%s' % (key) +req = urllib2.Request(url, '') +f = urllib2.urlopen(req) +print f.read()
