Create badges for the build status (Windows & Linux) on our Continuous Integration (CI) platform and show them on our README page on GitHub.
Each time someone opens up a Pull Request (PR) or makes a commit on the master branch of CCExtractor, our Continuous Integration (CI) platform (better known as the Sample Platform) fetches the code, compiles it (using all the available methods) and runs a test suite with over 100 samples.
These build statuses are not really visible unless you know where to look. Other sites, such as Travis (https://docs.travis-ci.com/user/status-images/) offer cool badges to integrate into the README, so that a user can see at once what's working and what isn't. We'd like to have the same, but for our own platform.
Your task is to modify the Sample Platform to generate those badges in SVG, based on the most recent test result for a commit, so that we can include it on the README.md. The code needs to generate badges on a fixed location for all the different methods that are being built on the Sample Platform.
Example commit test (click on show progress to see the build statuses) :
- Pass : https://sampleplatform.ccextractor.org/test/910
- Fail : https://sampleplatform.ccextractor.org/test/918
Pointers:
- https://github.com/CCExtractor/sample-platform/blob/master/install/ci-vm/ci-linux/ci/runCI#L122
- https://github.com/CCExtractor/sample-platform/blob/master/mod_ci/controllers.py#L626
- https://pypi.python.org/pypi/svgwrite
We expect a Pull Request with the modified code for the sample platform, and a PR on the main repository to update the readme to include the badges.