From 43b31b0fcd7f976aceabd28af7b216bbcf1872ca Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 8 Dec 2015 13:23:25 +0200 Subject: [PATCH] Continuous Integration using @PlatformIO and @travis-ci @PlatformIO (an open source ecosystem for IoT development) in pair with @travis-ci (an open-source hosted, distributed continuous integration service) proposes to apply continuos integration for embedded projects in a few clicks. * Official Travis CI Documentation for PlatformIO: https://docs.travis-ci.com/user/integration/platformio/ * PlatformIO documentation for Travis CI: http://docs.platformio.org/en/latest/ci/travis.html ## Quickstart Please enable Travis.CI for this project http://docs.travis-ci.com/user/getting-started/#To-get-started-with-Travis-CI%3A (steps 1, 2, 5) ## Status Badge You can add [badge with build status](https://docs.travis-ci.com/user/status-images/) to your README **Markdown** ``` [![Build Status](https://travis-ci.org/nethoncho/Arduino-DHT22.svg?branch=master)](https://travis-ci.org/nethoncho/Arduino-DHT22) ``` **RST** ``` .. image:: https://travis-ci.org/nethoncho/Arduino-DHT22.svg?branch=master :target: https://travis-ci.org/nethoncho/Arduino-DHT22 ``` ## Examples * Project [USB_Host_Shield_2.0](https://github.com/felis/USB_Host_Shield_2.0) [![Build Status](https://travis-ci.org/felis/USB_Host_Shield_2.0.svg?branch=master)](https://travis-ci.org/felis/USB_Host_Shield_2.0) * Project [Arduino-IRremote](https://github.com/z3t0/Arduino-IRremote) [![Build Status](https://travis-ci.org/z3t0/Arduino-IRremote.svg?branch=master)](https://travis-ci.org/z3t0/Arduino-IRremote) * Project [ethercard](https://github.com/jcw/ethercard) [![Build Status](https://travis-ci.org/jcw/ethercard.svg?branch=master)](https://travis-ci.org/jcw/ethercard) --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e20b605 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: python +python: + - "2.7" + +# Cache PlatformIO packages using Travis CI container-based infrastructure +sudo: false +cache: + directories: + - "~/.platformio" + +env: + - PLATFORMIO_CI_SRC=examples/Serial/Serial.ino + +install: + - pip install -U platformio + +script: + - platformio ci --lib=/var/folders/nj/nt38kxwd2xxfl5l42np_w7qw0000gn/T/platformiator-9HTUZ4-lib/project --board=uno --board=megaatmega1280