development; issue #374: Refactor 'make hack' making Vagrantfile and VM more useful

This commit is contained in:
Daniel Mizyrycki
2013-05-01 15:26:27 -07:00
parent 08812096f5
commit bb61678b57
10 changed files with 134 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python
'''Trigger buildbot docker test build
post-commit git hook designed to automatically trigger buildbot on
the provided vagrant docker VM.'''
import requests
USERNAME = 'buildbot'
PASSWORD = 'docker'
BASE_URL = 'http://localhost:8010'
path = lambda s: BASE_URL + '/' + s
try:
session = requests.session()
session.post(path('login'),data={'username':USERNAME,'passwd':PASSWORD})
session.post(path('builders/docker/force'),
data={'forcescheduler':'trigger','reason':'Test commit'})
except:
pass