From 8177f8f109da1633a9cf4a7b38afc34ee45af5c2 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Mon, 1 Apr 2019 08:58:50 +0200 Subject: [PATCH] Adding .travis.yml for automatic CI build of ArduinoIoTCloud Adding build badge to README --- .travis.yml | 24 ++++++++++++++++++++++++ README.md | 1 + 2 files changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..ca0335551 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: generic +env: + global: + - IDE_VERSION=1.8.9 + matrix: + - BOARD="arduino:samd:mkrwifi1010" + - BOARD="arduino:samd:mkrgsm1400" +before_install: + - wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz + - tar xf arduino-$IDE_VERSION-linux64.tar.xz + - mv arduino-$IDE_VERSION $HOME/arduino-ide + - export PATH=$PATH:$HOME/arduino-ide + - if [[ "$BOARD" =~ "arduino:samd:" ]]; then + arduino --install-boards arduino:samd; + fi + - buildExampleSketch() { arduino --verbose-build --verify --board $BOARD $PWD/examples/$1/$1.ino; } + - buildExampleUtilitySketch() { arduino --verbose-build --verify --board $BOARD $PWD/examples/utility/$1/$1.ino; } +install: + - mkdir -p $HOME/Arduino/libraries + - ln -s $PWD $HOME/Arduino/libraries/. +script: + - buildExampleSketch ArduinoIoTCloud_LED_switch + - buildExampleUtilitySketch Provisioning + diff --git a/README.md b/README.md index 4b6211656..a1d83ea0c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # ArduinoIoTCloud +[![Build Status](https://travis-ci.org/arduino-libraries/ArduinoIoTCloud.svg?branch=master)](https://travis-ci.org/arduino-libraries/ArduinoIoTCloud) This library facilitates interactions between boards featuring a cryptography co-processor and the Arduino IoT Cloud service. It includes a ConnectionManager to handle connection/disconnection/reconnection flows and provides means to interface local sketch variables with cloud based Thing properties, enabling synchronization and on-change callbacks. Currently supported boards: MKR1000 (WiFi101) and MKR 1010 (WiFiNINA). Support for MKRGSM is nearing completion and more cryptography enabled boards are following.