Skip to content

A simple script we use for our Raspberry Pi to check a Codeship build status and spark some LEDs

Notifications You must be signed in to change notification settings

cesarbarone/rasp-codeship

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Rasp CodeShip

This script expects both CODESHIP_TOKEN and CODESHIP_PROJECT environment variables to be set.

Install

$ sudo su
# apt-get update
# apt-get install ruby # you can script this down to a simple ShellScript, but I like the rubies...

Log into your Pi and clone this repo!

Run on Boot

Assuming you're using Raspbian, Occidentalis, or other Debian derived distros:

$ sudo su
# touch /etc/init.d/rasp-codeship
# chmod 755 /etc/init.d/rasp-codeship
# update-rc.d rasp-codeship defaults

This is a init script you should put into /etc/init.d/rasp-codeship

#!/bin/bash
export CODESHIP_TOKEN=
export CODESHIP_PROJECT=
ruby /home/pi/rasp-codeship/start.rb > /var/log/rasp-codeship.log

About

A simple script we use for our Raspberry Pi to check a Codeship build status and spark some LEDs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%