Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork114
Doing continuous integration with arduino builder
If you wish to be sure your library or package keeps on compiling while you develop it, you want some automatic way of running the Arduino IDE. You want it to compile, say, your library examples, every time you change your library implementation.
Continuous Integration (CI) comes to the rescue. CI servers likeJenkins allow you set up just this kind on automation with a "job", have it run automatically and send you an email if something has broken.
Suppose you're developing library "My_Beautiful_Library", located at~/mylibs/My_Beautiful_Library. This is how you can run the copy ofarduino-builder shipped with theArduino IDE in order to verify the correctness of your library examples:
cd PATH_TO_ARDUINO_IDEforsketchin`find~/mylibs/My_Beautiful_Library/examples/ -name'*.ino'`do ./arduino-builder -hardware ./hardware -tools ./hardware/tools/avr -tools ./tools-builder -libraries ./libraries -libraries~/mylibs/ -fqbn arduino:avr:uno$sketchdone
This short script will compile for the Arduino UNO every example found under~/mylibs/My_Beautiful_Library/examples/.