From f12599405a2988514627fcd1ef4df9f6eaddaf51 Mon Sep 17 00:00:00 2001 From: riggja Date: Wed, 14 Oct 2020 13:31:05 -0800 Subject: [PATCH] add arduino-ci support --- .arduino-ci.yml | 25 +++++++++++++++++++++++++ .bundle/config | 2 ++ .gitignore | 5 +++++ Gemfile | 2 ++ PID_v1.cpp => src/PID_v1.cpp | 0 PID_v1.h => src/PID_v1.h | 0 test/test.cpp | 6 ++++++ 7 files changed, 40 insertions(+) create mode 100644 .arduino-ci.yml create mode 100644 .bundle/config create mode 100644 .gitignore create mode 100644 Gemfile rename PID_v1.cpp => src/PID_v1.cpp (100%) rename PID_v1.h => src/PID_v1.h (100%) create mode 100644 test/test.cpp diff --git a/.arduino-ci.yml b/.arduino-ci.yml new file mode 100644 index 0000000..8a095a8 --- /dev/null +++ b/.arduino-ci.yml @@ -0,0 +1,25 @@ +# https://github.com/Arduino-CI/arduino_ci/issues/159 +# copied from vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/misc/default.yml +platforms: + mega2560: + board: arduino:avr:mega:cpu=atmega2560 + package: arduino:avr + gcc: + features: + defines: + - __AVR_ATmega2560__ + # added this line + - ARDUINO_CI + warnings: + flags: + +unittest: + platforms: + - mega2560 + testfiles: + reject: + - "Common.cpp" + +compile: + platforms: + - mega2560 diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000..2369228 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_PATH: "vendor/bundle" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bd10d2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +Gemfile.lock +vendor +# C++ stuff +*.bin +*.bin.dSYM diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..fb422d1 --- /dev/null +++ b/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'arduino_ci' diff --git a/PID_v1.cpp b/src/PID_v1.cpp similarity index 100% rename from PID_v1.cpp rename to src/PID_v1.cpp diff --git a/PID_v1.h b/src/PID_v1.h similarity index 100% rename from PID_v1.h rename to src/PID_v1.h diff --git a/test/test.cpp b/test/test.cpp new file mode 100644 index 0000000..affab10 --- /dev/null +++ b/test/test.cpp @@ -0,0 +1,6 @@ +#include "Arduino.h" +#include "ArduinoUnitTests.h" + +unittest(test) { assertTrue(true); } + +unittest_main()