Skip to content

BlackstoneEngineering/connector-example-python-github-build-failure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What

This is a python script that will set off an alarm when github repositories continuous integration tests fail.

Why

Because I want to build something simple, but useful demonstrating IoT using ARM mbed Device Connector

Goal

To shame co-workers into fixing critical repositories when they break by putting a siren light above their desk and setting it off when something they are responsible for has broken / failed its CI tests. Its easy to ignore or filter email, its very hard to ignore a siren going off above your head. Imagined Use Case

Pre-Requirements

How

  1. Load board with mbed-client-example. Plug in power and ethernet to connect the board to the internet.
    • Optional Bonus : use relay to control super awesome police siren instead of onboard LED on board. To do this replace the deffinition of led1 in source/main.cpp.
    DigitalOut led1(D3); // where D3 controls the relay
  2. Modify the values in the standalone.py script. You will need to fill in the token field, the endpoint field, and you can change repo the build badge is on by changing the owner, repo, and ref fields.
  3. Run the standalone python script on an internet connected computer.
python ./src/standalone.py

Output

The LED (or the awesome siren light if you enable it) will blink on and off if the build is broken. If the build is passing then the siren will not go off.

License

Apache 2.0, see the Liscense file. It means you are free to re-use it in personal or commercial but make sure to give credit where its due. Preferred credit in the form of backlinks to this repo.

About

Simple web app that uses mbed Device Connector to turn a siren light on / off depending on build status of github repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages