Topobot 🐭 – CI FTW

Topobot is running on a Raspberry PI in my home, but I develop the code on my laptop, so I  had very simple workflow:

  • Work on the local dev on my laptop
  • Commit changes to master
  • Push changes to GitHub
  • SSH on the Raspberry PI
  • Pull master from Github
  • Restart the node server that runs Topobot

It was fine for a few days, but then I went for a better workflow.

I created a listener with Nginx, a very basic CGI to pull from GitHub and restart the node server. I configured a webhook on GitHub at voilà, CI like a boss.

Now I simply have to:

  • Work on the local dev on my laptop
  • Commit changes to master
  • Push changes to GitHub

The basic CI takes care of the rest and in a few seconds, a new Topobot is alive and kicking. There will be some Unit Testing at some point, maybe.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s