Skip to content

Commit

Permalink
circleCI integration
Browse files Browse the repository at this point in the history
build the main sketch via CI
  • Loading branch information
Remus Lazar committed Jan 9, 2020
1 parent 6a18e76 commit 118e211
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
jobs:
build:
docker:
- image: circleci/buildpack-deps:stretch-curl
environment:
ARDUINO_IDE_VERSION: 1.8.5
BOARD: arduino:samd:mkrwifi1010
LIBRARIES: Scheduler,WiFiNINA

steps:
- checkout
- run: cp src/arduino/main/wifi_client_secrets_example.h src/arduino/main/wifi_client_secrets.h
- restore_cache:
key: arduino-ide-{{ .Environment.ARDUINO_IDE_VERSION }}-{{ .Environment.BOARD }}-v1

- run:
name: Install the Arduino IDE version ${ARDUINO_IDE_VERSION}
command: "test -d arduino-ide || curl http://downloads.arduino.cc/arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz | tar --xz -xf -"
- run: "test -d arduino-ide || mv arduino-$ARDUINO_IDE_VERSION arduino-ide"
- run: "test -d ../.arduino15/packages/arduino/hardware/samd || arduino-ide/arduino --install-boards arduino:samd"
- run: arduino-ide/arduino --install-library ${LIBRARIES} ; true
- run: arduino-ide/arduino --verbose-build --verify --board $BOARD $PWD/src/arduino/main/main.ino

- save_cache:
key: arduino-ide-{{ .Environment.ARDUINO_IDE_VERSION }}-{{ .Environment.BOARD }}-v1
paths:
- "arduino-ide"
- "../.arduino15"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Arduino Doorbell
====

[![CircleCI](https://circleci.com/gh/remuslazar/ArduinoDoorbell.svg?style=svg&circle-token=3810e09b10dd3b8ab5f572e5c6ab38703eb1c757)](https://circleci.com/gh/remuslazar/ArduinoDoorbell)

Abstract
----

Expand Down

0 comments on commit 118e211

Please sign in to comment.