Everytime a commit is pushed to this repository, a Travis-CI is triggered. The job validates the Newline JSON schedule and tests the parser script. On a successful Travis build a webhook https://hackerspace.gent/newline/pull.php
is called, triggering a git pull
in the 0x20.be/newline
repository, and a parser script generates a pentabarf XML from the JSON conference schedule.
.htaccess
: This file redirects/newline
to/newline/2018
. This needs to be changed every year.2015/
,2016/
,/20..
: Each year has its own directory. Add a new directory each yearpull.php
: This file callsgit pull
when accessed. This is needed for automatic sync with github, so do not change it!.travis.yml
: configuration for the Travis CI build jobschedule_parser.py
: python script that generates a Pentabarf XML file from the Newline schedule JSON file.test
: folder with data to test theschedule_parser.py
script.
A parser script reads the newline schedule json data file (<year>/json/data.json) and generates a Pentabarf XML (<year>/xml/pentabarf.xml).
The python parser script relies on these packages :
- lxml
- jsonschedule
- python-pentabarf-xml
Install depedencies by running
pip install -r requirements.txt
If you want to commit from the server itself, use this command to specify your name and email address
git -c user.name='<NAME>' -c user.email='<EMAIL>' commit -m '<TEXT>'
Thanks to: http://writing.markchristian.org/2011/03/10/how-to-deploy-your-code-from-github-automatically.html