Code Monkey home page Code Monkey logo

connector-example-python-github-build-failure's Introduction

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.

connector-example-python-github-build-failure's People

Contributors

blackstoneengineering avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.