Hello all, Based on Paul Kinlan's blog post<http://paul.kinlan.me/Using-the-Github-API-to-optimise-your-workflow/> I have forked and updated the "Github-Auto-Deploy" server to deploy SymPy Live/SymPy Gamma. My fork is at https://github.com/lidavidm/Github-Auto-Deploy; it uses Python 3 and has some other changes detailed below.
How it works: - The server is configured with the location of the local repository, the deploy scripts, etc. (see the configuration file<https://github.com/lidavidm/Github-Auto-Deploy/blob/master/sympy_auto_deploy.conf.json> ) - On the repository a webhook is set up to point to the server. - Any commit will be sent as a POST request to the server. - The server (this is different from the original) filters for a commit message matching "Bump version to [0-9]+" (specified in the configuration file), at which point it pulls changes from remote. - The deploy script uses the App Engine SDK to deploy. - This uses OAuth so we only have to sign in once. - The deploy script has access to environment variables set by the server/configuration so we don't have to hardcode the SDK location in the script. Some work is still needed: the server doesn't verify that the request is from Github<https://help.github.com/articles/what-ip-addresses-does-github-use-that-i-should-whitelist>. Also, the project has no license, so it's unclear if we can use it or not. The server can be tested locally with instructions from Github<http://developer.github.com/webhooks/configuring/>: run the server, then use ngrok to expose the local server to the Internet. On Github's webhook page (in the repository settings), add the ngrok URL as a webhook and set the payload version to JSON (this also differs from the original server) David -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/ee8ae420-56ce-4c61-b3a8-588afb4fe6e9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
