Comments (19)
It seems to be having some trouble locating the Arduino executable. This may be a problem on my part, but I'm slightly confused because it works on my machine (where Arduino is installed) and Travis CI (where arduino_ci
handles the installation from scratch).
Where is Arduino.app
installed on your system?
from arduino_ci.
It's at /Applications/Arduino.app/
but after running bundle exec arduino_ci_remote.rb
there's also Arduino.app in my project directory.
Should I really run:
bundle exec arduino_ci_remote.rb
to start local testing (without Arduino board connected) ?
from arduino_ci.
Yes, arduino_ci_remote.rb
is the best script to run -- the intention is to eventually write a script for local testing (that skips all the installation and environment-reporting stuff), but for now that script is what I use for both local and remote.
The fact that it's not finding /Applications/Arduino.app
is very odd because I explicitly check there.
One way for me to troubleshoot this is for you to run a test branch on your machine. Can you replace your Gemfile
with these contents?
source 'https://rubygems.org'
gem 'arduino_ci', :git => "[email protected]:ianfixes/arduino_ci.git", :branch => "2019-01-11_small_fixes"
That will point you at the code being tested in https://github.com/ianfixes/arduino_ci/pull/79
from arduino_ci.
$ bundle install
Fetching [email protected]:ianfixes/arduino_ci.git
[email protected]: Permission denied (publickey).
fatal: Impossible de lire le dépôt distant.
Veuillez vérifier que vous avez les droits d'accès
et que le dépôt existe.
Retrying `git clone '[email protected]:ianfixes/arduino_ci.git' "/Users/scls/.rvm/gems/ruby-2.3.0/cache/bundler/git/arduino_ci-b26e28e5a8273bc37e77a4446767a08471a72008" --bare --no-hardlinks --quiet` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone '[email protected]:ianfixes/arduino_ci.git' "/Users/scls/.rvm/gems/ruby-2.3.0/cache/bundler/git/arduino_ci-b26e28e5a8273bc37e77a4446767a08471a72008" --bare --no-hardlinks --quiet` in directory /Users/scls/github/scls19fr/gokart_multilaptimer has [email protected]: Permission denied (publickey).
fatal: Impossible de lire le dépôt distant.
Veuillez vérifier que vous avez les droits d'accès
et que le dépôt existe.
Retrying `git clone '[email protected]:ianfixes/arduino_ci.git' "/Users/scls/.rvm/gems/ruby-2.3.0/cache/bundler/git/arduino_ci-b26e28e5a8273bc37e77a4446767a08471a72008" --bare --no-hardlinks --quiet` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone '[email protected]:ianfixes/arduino_ci.git' "/Users/scls/.rvm/gems/ruby-2.3.0/cache/bundler/git/arduino_ci-b26e28e5a8273bc37e77a4446767a08471a72008" --bare --no-hardlinks --quiet` in directory /Users/scls/github/scls19fr/gokart_multilaptimer has [email protected]: Permission denied (publickey).
fatal: Impossible de lire le dépôt distant.
Veuillez vérifier que vous avez les droits d'accès
et que le dépôt existe.
Retrying `git clone '[email protected]:ianfixes/arduino_ci.git' "/Users/scls/.rvm/gems/ruby-2.3.0/cache/bundler/git/arduino_ci-b26e28e5a8273bc37e77a4446767a08471a72008" --bare --no-hardlinks --quiet` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone '[email protected]:ianfixes/arduino_ci.git' "/Users/scls/.rvm/gems/ruby-2.3.0/cache/bundler/git/arduino_ci-b26e28e5a8273bc37e77a4446767a08471a72008" --bare --no-hardlinks --quiet` in directory /Users/scls/github/scls19fr/gokart_multilaptimer has [email protected]: Permission denied (publickey).
fatal: Impossible de lire le dépôt distant.
Veuillez vérifier que vous avez les droits d'accès
et que le dépôt existe.
Git error: command `git clone '[email protected]:ianfixes/arduino_ci.git'
"/Users/scls/.rvm/gems/ruby-2.3.0/cache/bundler/git/arduino_ci-b26e28e5a8273bc37e77a4446767a08471a72008" --bare --no-hardlinks --quiet` in directory
/Users/scls/github/scls19fr/gokart_multilaptimer has failed.
from arduino_ci.
Changing for
source 'https://rubygems.org'
gem 'arduino_ci', :git => "https://github.com/ianfixes/arduino_ci.git", :branch => "2019-01-11_small_fixes"
from arduino_ci.
Running
$ bundle exec arduino_ci_remote.rb
open quickly my Arduino IDE (I just see splash screen a few seconds) and after
Attempting to download Arduino package with open-uri
is displayed on console
from arduino_ci.
I bet I know the problem... I'm searching for an english-language string in the output, and it's possible that the Arduino IDE might be writing one in French.
What's the output when you run this from the console?
$ /Applications/Arduino.app/Contents/MacOS/Arduino --bogus-option
from arduino_ci.
Located Arduino binary... /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:311:in `block in <top (required)>': undefined method `binary_path' for nil:NilClass (NoMethodError)
from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:40:in `perform_action'
from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:75:in `inform'
from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:311:in `<top (required)>'
from /Users/scls/.rvm/gems/ruby-2.3.0/bin/arduino_ci_remote.rb:23:in `load'
from /Users/scls/.rvm/gems/ruby-2.3.0/bin/arduino_ci_remote.rb:23:in `<main>'
from /Users/scls/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/scls/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
is displayed while Arduino splash screen is shown again and quickly quit
from arduino_ci.
$ /Applications/Arduino.app/Contents/MacOS/Arduino --bogus-option
Erreur: option inconnue : --bogus-option
I wonder if/when arduino-cli https://github.com/arduino/arduino-cli will be officially released (not alpha) and used in Arduino IDE... it will probably help a lot
from arduino_ci.
Yup, that was it. This patch (that I just pushed) should fix it:
ianfixes@95857c8
Can you reinstall the bundle and try again?
from arduino_ci.
$ cat Gemfile
source 'https://rubygems.org'
gem 'arduino_ci', :git => "https://github.com/ianfixes/arduino_ci.git", :branch => "2019-01-11_small_fixes"
$ bundle install
Using os 1.0.0
Using rubyzip 1.2.2
Using arduino_ci 0.1.16 from https://github.com/ianfixes/arduino_ci.git (at 2019-01-11_small_fixes@2e13f87)
Using bundler 1.16.4
Bundle complete! 1 Gemfile dependency, 4 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
✔ ~/github/scls19fr/gokart_multilaptimer [master|…4801]
16:16 $ bundle exec arduino_ci_remote.rb
Arduino package seems to have been downloaded already
Arduino package seems to have been extracted already
Arduino package seems to have been installed already
Located Arduino binary... bundler: failed to load command: arduino_ci_remote.rb (/Users/scls/.rvm/gems/ruby-2.3.0/bin/arduino_ci_remote.rb)
NoMethodError: undefined method `binary_path' for nil:NilClass
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:311:in `block in <top (required)>'
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:40:in `perform_action'
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:75:in `inform'
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-2e13f8755546/exe/arduino_ci_remote.rb:311:in `<top (required)>'
/Users/scls/.rvm/gems/ruby-2.3.0/bin/arduino_ci_remote.rb:23:in `load'
/Users/scls/.rvm/gems/ruby-2.3.0/bin/arduino_ci_remote.rb:23:in `<top (required)>'
from arduino_ci.
Sorry @ianfixes but I won't be able to test this more today (because of my schedule).
from arduino_ci.
It looks like your bundle install didn't grab the latest ref. Your output says 2019-01-11_small_fixes@2e13f87
when it should actually say 2019-01-11_small_fixes@95857c8
(the ianfixes@95857c8 I posted above).
You could put the ref right in the Gemfile
gem 'arduino_ci', git: "https://github.com/ianfixes/arduino_ci.git", branch: "2019-01-11_small_fixes", ref: "95857c830209f986df492020e66acad7115c9e2e"
from arduino_ci.
Ok thanks sorry about my mistake... I will try tomorrow
from arduino_ci.
Arduino.app is now found and previous error seems to be fixed but
it seems that my tests aren't found.
09:02 $ tree
.
├── Gemfile
├── Gemfile.lock
├── README.md
└── multilaptimer
├── config.h
├── debug.h
├── laptimer.cpp
├── laptimer.h
├── mode.h
├── multilaptimer.ino
├── page.h
├── pinout.h
├── test
│ └── test_laptimer.cpp
├── utils.cpp
└── utils.h
2 directories, 14 files
✔ ~/github/scls19fr/gokart_multilaptimer [master|…3]
09:03 $ cat multilaptimer/test/test_laptimer.cpp
#include <ArduinoUnitTests.h>
#include "../laptimer.h"
unittest(your_test_name)
{
assertEqual(4, doSomething());
}
unittest_main()
✔ ~/github/scls19fr/gokart_multilaptimer [master|…3]
09:03 $ bundle exec arduino_ci_remote.rb
Located Arduino binary... /Users/scls/Arduino.app
The set of compilers (1) isn't empty... ✓
Checking g++ version...
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
...Checking g++ version ✓
libasan availability for g++... true
Requested unittest platform 'uno' is defined in 'platforms' YML... ✓
Requested unittest platform 'due' is defined in 'platforms' YML... ✓
Requested unittest platform 'zero' is defined in 'platforms' YML... ✓
Requested unittest platform 'leonardo' is defined in 'platforms' YML... ✓
Skipping unit tests; no tests dir at test...
In case that's an error, this is what was found in the library:
Gemfile
Gemfile.lock
README.md
multilaptimer/config.h
multilaptimer/debug.h
multilaptimer/laptimer.cpp
multilaptimer/laptimer.h
multilaptimer/mode.h
multilaptimer/multilaptimer.ino
multilaptimer/page.h
multilaptimer/pinout.h
multilaptimer/test/test_laptimer.cpp
multilaptimer/utils.cpp
multilaptimer/utils.h
...Skipping unit tests; no tests dir at test
Indexing libraries... ✓
Installing library under test... ✓
Library installed at... /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
Skipping builds; no examples found in /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer...
/Users/scls/github/scls19fr/gokart_multilaptimer/Gemfile
/Users/scls/github/scls19fr/gokart_multilaptimer/Gemfile.lock
/Users/scls/github/scls19fr/gokart_multilaptimer/README.md
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/config.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/mode.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/multilaptimer.ino
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/page.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/pinout.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/test/test_laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.h
...Skipping builds; no examples found in /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
Failures: 0
from arduino_ci.
Moving test file doesn't help
09:24 $ tree
.
├── Gemfile
├── Gemfile.lock
├── README.md
├── multilaptimer
│ ├── config.h
│ ├── debug.h
│ ├── laptimer.cpp
│ ├── laptimer.h
│ ├── mode.h
│ ├── multilaptimer.ino
│ ├── page.h
│ ├── pinout.h
│ ├── utils.cpp
│ └── utils.h
└── test
└── test_laptimer.cpp
2 directories, 14 files
✔ ~/github/scls19fr/gokart_multilaptimer [master|…3]
09:24 $ cat test/test_laptimer.cpp
#include <ArduinoUnitTests.h>
#include "../laptimer.h"
//#include "multilaptimer/laptimer.h" // doesn't work also
unittest(your_test_name)
{
assertEqual(4, doSomething());
}
unittest_main()
✔ ~/github/scls19fr/gokart_multilaptimer [master|…3]
09:24 $ bundle exec arduino_ci_remote.rb
Located Arduino binary... /Users/scls/Arduino.app
The set of compilers (1) isn't empty... ✓
Checking g++ version...
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
...Checking g++ version ✓
libasan availability for g++... true
Requested unittest platform 'uno' is defined in 'platforms' YML... ✓
Requested unittest platform 'due' is defined in 'platforms' YML... ✓
Requested unittest platform 'zero' is defined in 'platforms' YML... ✓
Requested unittest platform 'leonardo' is defined in 'platforms' YML... ✓
Unit testing test_laptimer.cpp with g++...
Last command: $ g++ -std=c++0x -o /Users/scls/github/scls19fr/gokart_multilaptimer/unittest_test_laptimer.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -D__AVR_ATmega328P__ -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest -I/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/stdlib.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp:2:10: fatal error: '../laptimer.h' file not found
#include "../laptimer.h"
^~~~~~~~~~~~~~~
1 error generated.
...Unit testing test_laptimer.cpp with g++ ✗
Unit testing test_laptimer.cpp with g++...
Last command: $ g++ -std=c++0x -o /Users/scls/github/scls19fr/gokart_multilaptimer/unittest_test_laptimer.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -D__AVR_ATmega328__ -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest -I/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/stdlib.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp:2:10: fatal error: '../laptimer.h' file not found
#include "../laptimer.h"
^~~~~~~~~~~~~~~
1 error generated.
...Unit testing test_laptimer.cpp with g++ ✗
Unit testing test_laptimer.cpp with g++...
Last command: $ g++ -std=c++0x -o /Users/scls/github/scls19fr/gokart_multilaptimer/unittest_test_laptimer.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -D__SAMD21G18A__ -DARDUINO_SAMD_ZERO -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest -I/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/stdlib.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
1 warning generated.
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp:3:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:11: error: use of undeclared identifier 'SPCR'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:24: error: use of undeclared identifier 'DORD'
if (!(SPCR & (1 << DORD))) {
^
1 warning and 2 errors generated.
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Assertion.h:7:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Compare.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
1 warning generated.
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:10:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:11: error: use of undeclared identifier 'SPCR'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:24: error: use of undeclared identifier 'DORD'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:22:5: error: use of undeclared identifier 'Serial'
dbSerialPrintln("Too much sectors");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:14:31: note: expanded from macro 'dbSerialPrintln'
#define dbSerialPrintln(a) dbSerial.println(a)
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:31:5: error: use of undeclared identifier 'Serial'
dbSerialPrintln("Too big InitSector");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:14:31: note: expanded from macro 'dbSerialPrintln'
#define dbSerialPrintln(a) dbSerial.println(a)
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:88:9: error: use of undeclared identifier 'Serial'
dbSerial.print(" Last Lap : "); dbSerial.println(time_lastlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:88:52: error: use of undeclared identifier 'Serial'
dbSerial.print(" Last Lap : "); dbSerial.println(time_lastlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:91:9: error: use of undeclared identifier 'Serial'
dbSerial.print("*********** Best Lap : "); dbSerial.println(time_bestlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:91:52: error: use of undeclared identifier 'Serial'
dbSerial.print("*********** Best Lap : "); dbSerial.println(time_bestlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:94:7: error: use of undeclared identifier 'Serial'
dbSerial.print("*********** first line");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
1 warning and 9 errors generated.
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp:1:
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.h:4:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:10:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp:1:
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.h:4:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:11: error: use of undeclared identifier 'SPCR'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:24: error: use of undeclared identifier 'DORD'
if (!(SPCR & (1 << DORD))) {
^
1 warning and 2 errors generated.
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Assertion.h:7:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Compare.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
/Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp:2:10: fatal error: '../laptimer.h' file not found
#include "../laptimer.h"
^~~~~~~~~~~~~~~
1 warning and 1 error generated.
...Unit testing test_laptimer.cpp with g++ ✗
Unit testing test_laptimer.cpp with g++...
Last command: $ g++ -std=c++0x -o /Users/scls/github/scls19fr/gokart_multilaptimer/unittest_test_laptimer.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -D__AVR_ATmega32U4__ -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest -I/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/stdlib.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:22:5: error: use of undeclared identifier 'Serial'; did you mean 'Serial1'?
dbSerialPrintln("Too much sectors");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:14:31: note: expanded from macro 'dbSerialPrintln'
#define dbSerialPrintln(a) dbSerial.println(a)
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/HardwareSerial.h:71:25: note: 'Serial1' declared here
extern HardwareSerial Serial1;
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:31:5: error: use of undeclared identifier 'Serial'; did you mean 'Serial1'?
dbSerialPrintln("Too big InitSector");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:14:31: note: expanded from macro 'dbSerialPrintln'
#define dbSerialPrintln(a) dbSerial.println(a)
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/HardwareSerial.h:71:25: note: 'Serial1' declared here
extern HardwareSerial Serial1;
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:88:9: error: use of undeclared identifier 'Serial'; did you mean 'Serial1'?
dbSerial.print(" Last Lap : "); dbSerial.println(time_lastlap);
^~~~~~~~
Serial1
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/HardwareSerial.h:71:25: note: 'Serial1' declared here
extern HardwareSerial Serial1;
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:88:52: error: use of undeclared identifier 'Serial'; did you mean 'Serial1'?
dbSerial.print(" Last Lap : "); dbSerial.println(time_lastlap);
^~~~~~~~
Serial1
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/HardwareSerial.h:71:25: note: 'Serial1' declared here
extern HardwareSerial Serial1;
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:91:9: error: use of undeclared identifier 'Serial'; did you mean 'Serial1'?
dbSerial.print("*********** Best Lap : "); dbSerial.println(time_bestlap);
^~~~~~~~
Serial1
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/HardwareSerial.h:71:25: note: 'Serial1' declared here
extern HardwareSerial Serial1;
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:91:52: error: use of undeclared identifier 'Serial'; did you mean 'Serial1'?
dbSerial.print("*********** Best Lap : "); dbSerial.println(time_bestlap);
^~~~~~~~
Serial1
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/HardwareSerial.h:71:25: note: 'Serial1' declared here
extern HardwareSerial Serial1;
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:94:7: error: use of undeclared identifier 'Serial'; did you mean 'Serial1'?
dbSerial.print("*********** first line");
^~~~~~~~
Serial1
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/HardwareSerial.h:71:25: note: 'Serial1' declared here
extern HardwareSerial Serial1;
^
7 errors generated.
/Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp:2:10: fatal error: '../laptimer.h' file not found
#include "../laptimer.h"
^~~~~~~~~~~~~~~
1 error generated.
...Unit testing test_laptimer.cpp with g++ ✗
Indexing libraries... ✓
Installing library under test... ✓
Library installed at... /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
Skipping builds; no examples found in /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer...
/Users/scls/github/scls19fr/gokart_multilaptimer/Gemfile
/Users/scls/github/scls19fr/gokart_multilaptimer/Gemfile.lock
/Users/scls/github/scls19fr/gokart_multilaptimer/README.md
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/config.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/mode.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/multilaptimer.ino
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/page.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/pinout.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.h
/Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp
...Skipping builds; no examples found in /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
Failures: 4
from arduino_ci.
I would like to run unit test for Arduino Mega 2560 but I'm not sure what should be in .arduino-ci.yml
I've tried mega
and also mega2560
with mega
10:39 $ cat .arduino-ci.yml
unittest:
platforms:
- mega
compile:
platforms:
- mega
✔ ~/github/scls19fr/gokart_multilaptimer [master|✚ 1…3]
10:39 $ bundle exec arduino_ci_remote.rb
Located Arduino binary... /Users/scls/Arduino.app
The set of compilers (1) isn't empty... ✓
Checking g++ version...
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
...Checking g++ version ✓
libasan availability for g++... true
Requested unittest platform 'mega' is defined in 'platforms' YML... ✗
This may indicate a problem with ArduinoCI, or your configuration
Failures: 1
Last message: $ java -cp /Users/scls/Arduino.app/Contents/Java/* -DAPP_DIR=/Users/scls/Arduino.app/Contents/Java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -Xms128M -Xmx512M processing.app.Base --get-pref
========== Stdout:
Bibliothèque non valide trouvée dans /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer : /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
Bibliothèque non valide trouvée dans /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer : /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
#PREFDUMP#
last.sketch.count=1
update.check=true
platform.auto_file_type_associations=true
gui.scale=auto
editor.window.width.default=500
editor.window.height.default=600
editor.window.width.min=400
editor.window.height.min=290
editor.code_folding=false
editor.font=Monaco,plain,12
editor.antialias=true
editor.external=false
editor.caret.blink=true
editor.invalid=false
editor.linenumbers=false
editor.keys.alternative_cut_copy_paste=false
editor.keys.shift_backspace_is_delete=true
editor.keys.home_and_end_beginning_end_of_doc=false
console=true
console.output.file=stdout.txt
console.error.file=stderr.txt
console.lines=4
console.auto_clear=true
console.length=500
editor.tabs.expand=true
editor.tabs.size=2
editor.indent=true
editor.auto_close_braces=true
editor.divider.size=0
editor.save_on_verify=true
run.options=
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.display=1
export.application.platform=true
export.application.fullscreen=false
export.application.stop=true
export.applet.separate_jar_files=false
export.delete_target_folder=true
preproc.save_build_files=false
preproc.color_datatype=true
preproc.web_colors=true
preproc.enhanced_casting=true
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.output_parse_tree=false
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
run.present.bgcolor=#666666
run.present.stop.color=#cccccc
run.present.exclusive=true
target_package=arduino
target_platform=avr
board=mega
software=ARDUINO
build.warn_data_percentage=75
programmer=arduino:arduinoisporg
upload.using=bootloader
upload.verify=true
serial.port=/dev/cu.usbmodemFD121
serial.databits=8
serial.stopbits=1
serial.parity=N
serial.debug_rate=9600
serial.line_ending=1
editor.languages.current=
preferences.readonly=false
runtime.ide.path=/Users/scls/Arduino.app/Contents/Java
runtime.ide.version=10806
custom_cpu=mega_atmega2560
last.ide.1.8.2.daterun=1536221650
last.ide.1.8.2.hardwarepath=/Applications/Arduino.app/Contents/Java/hardware
last.ide.1.8.6.daterun=1547285993
last.ide.1.8.6.hardwarepath=/Users/scls/Arduino.app/Contents/Java/hardware
last.screen.height=900
last.screen.width=1440
last.serial.location=591,23,769,831
last.sketch.default.location=92,36,971,770,554,0
last.sketch.default.path=/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/multilaptimer.ino
last.sketch0.location=92,36,971,770,554,0
last.sketch0.path=/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/multilaptimer.ino
last.sketch1.location=161,67,500,600,456,0
last.sketch1.path=/Users/scls/github/scls19fr/ekart_daq_2018_2019/tuto_05/tuto_05_stand/tuto_05_stand.ino
last.sketch2.location=470,150,500,600,456,0
last.sketch2.path=/Users/scls/github/scls19fr/ekart_daq_2018_2019/tuto_05/tuto_05_stand/tuto_05_stand.ino
last.sketch3.location=862,408,998,744,579,0
last.sketch3.path=/Users/scls/github/scls/gokart_logger/gokart_logger/gokart_logger.ino
last.sketch4.location=350,480,669,763,598,0
last.sketch4.path=/Users/scls/github/scls/gokart_logger/clock_set_2/clock_set_2.ino
last.sketch5.location=623,23,715,830,665,0
last.sketch5.path=/Users/scls/Documents/Arduino/clock_set/clock_set.ino
recent.sketches=/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/multilaptimer.ino,/Users/scls/Downloads/Nokia5110Menu/Nokia5110Menu.ino,/Users/scls/github/scls19fr/ekart_daq_2018_2019/tuto_05/tuto_05_kart/tuto_05_kart.ino,/Users/scls/github/scls19fr/ekart_daq_2018_2019/tuto_05/tuto_05_stand/tuto_05_stand.ino,/Users/scls/github/scls/gokart_logger/RPMmeter_lcd/RPMmeter_lcd.ino,/Users/scls/github/scls/gokart_logger/RPMmeter/RPMmeter.ino,/Users/scls/github/scls/gokart_logger/RPMmeter_serial/RPMmeter_serial.ino,/Users/scls/github/scls/gokart_logger/clock_set_3/clock_set_3.ino,/Users/scls/Documents/Arduino/clock_set/clock_set.ino,/Users/scls/github/scls/gokart_logger/gokart_logger/gokart_logger.ino,/Users/scls/github/scls/gokart_logger/clock_set/clock_set.ino,/Users/scls/github/scls/gokart_logger/clock_set_2/clock_set_2.ino,/Users/scls/Documents/Arduino/clock_set_2/clock_set_2.ino,/Users/scls/github/scls/gokart_logger/lcd_i2c_nav_keypad/lcd_i2c_nav_keypad.ino,/Users/scls/github/scls/gokart_logger/RPMmeter/src/RPMmeter/RPMmeter.ino,/Users/scls/Documents/Arduino/lcd_i2c_nav_keypad/lcd_i2c_nav_keypad.ino,/Users/scls/github/scls/arduino-fsm/examples/light_switch/light_switch.ino,/Users/scls/Documents/Arduino/temp/temp.ino,/Users/scls/Documents/Arduino/libraries/arduino-menusystem/examples/lcd_nav/lcd_nav.ino,/Users/scls/Documents/Arduino/libraries/arduino-menusystem/examples/lcd_nav_keypad/lcd_nav_keypad.ino,/Users/scls/Documents/Arduino/libraries/arduino-menusystem/examples/lcd_i2c_nav_keypad/lcd_i2c_nav_keypad.ino,/Users/scls/Documents/Arduino/lcd_i2c_nav/lcd_i2c_nav.ino,/Users/scls/Documents/Arduino/test_menu/test_menu.ino,/Users/scls/Documents/Arduino/menu/menu.ino,/Users/scls/Documents/Arduino/lcd/lcd.ino,/Users/scls/Documents/Arduino/serial/serial.ino,/Users/scls/github/scls/gokart_logger/chrono/chrono.ino,/Users/scls/Documents/Arduino/libraries/SdFat/examples/SdFormatter/SdFormatter.ino,/Users/scls/Documents/Arduino/libraries/SdFat/examples/ReadWrite/ReadWrite.ino,/Users/scls/Documents/Arduino/chrono/chrono.ino,/Users/scls/Documents/Arduino/RPMmeter/RPMmeter.ino,/Users/scls/Documents/Arduino/RPMmeter_serial/RPMmeter_serial.ino,/Users/scls/Downloads/Fuelino-SW-1.0-beta5-master/Fuelino-SW-1.0-beta5/libraries/SDFatYield/examples/dataLogger/dataLogger.ino,/Users/scls/Documents/Arduino/HelloWorld2/HelloWorld2.ino,/Users/scls/Documents/Arduino/HelloWorld/HelloWorld.ino,/Users/scls/Downloads/gokart_logger-master/gokart_logger/gokart_logger.ino,/Users/scls/Documents/Arduino/libraries/Adafruit_LiquidCrystal/examples/HelloWorld_SPI/HelloWorld_SPI.pde,/Users/scls/Documents/Arduino/libraries/Adafruit_LiquidCrystal/examples/HelloWorld_i2c/HelloWorld_i2c.pde,/Users/scls/Documents/Arduino/libraries/Adafruit_ADXL345/examples/sensortest/sensortest.pde,/Users/scls/github/scls/8652a41d3ef3b6027c74cf0027b1d8dd_gokart_arduino/gokart_logger/gokart_logger.ino,/Users/scls/Documents/Arduino/sample_serial/sample_serial.ino
serial.port.file=cu.usbmodemFD121
serial.port.iserial=75633313133351D082B0
sketchbook.path=/Users/scls/Documents/Arduino
update.id=906145261407501964
runtime.os=macosx
runtime.tools.openocd-0.9.0+0.1.path=/Users/scls/Library/Arduino15/packages/Intel/tools/openocd/0.9.0+0.1
runtime.tools.Intel-openocd-0.9.0+0.1.path=/Users/scls/Library/Arduino15/packages/Intel/tools/openocd/0.9.0+0.1
runtime.tools.openocd.path=/Users/scls/Library/Arduino15/packages/Intel/tools/openocd/0.9.0+0.1
runtime.tools.arduinoOTA-1.1.1.path=/Users/scls/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.1.1
runtime.tools.arduino-arduinoOTA-1.1.1.path=/Users/scls/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.1.1
runtime.tools.arduinoOTA.path=/Users/scls/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1
runtime.tools.avrdude-6.3.0-arduino9.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9
runtime.tools.arduino-avrdude-6.3.0-arduino9.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9
runtime.tools.avrdude.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14
runtime.tools.arduino101load-2.0.1.path=/Users/scls/Library/Arduino15/packages/Intel/tools/arduino101load/2.0.1
runtime.tools.Intel-arduino101load-2.0.1.path=/Users/scls/Library/Arduino15/packages/Intel/tools/arduino101load/2.0.1
runtime.tools.arduino101load.path=/Users/scls/Library/Arduino15/packages/Intel/tools/arduino101load/2.0.1
runtime.tools.avrdude-6.3.0-arduino14.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14
runtime.tools.arduino-avrdude-6.3.0-arduino14.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14
runtime.tools.arduinoOTA-1.2.1.path=/Users/scls/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1
runtime.tools.arduino-arduinoOTA-1.2.1.path=/Users/scls/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1
runtime.tools.dfu-util-0.9.0-arduino1.path=/Users/scls/Library/Arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1
runtime.tools.arduino-dfu-util-0.9.0-arduino1.path=/Users/scls/Library/Arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1
runtime.tools.dfu-util.path=/Users/scls/Library/Arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1
runtime.tools.avr-gcc-4.9.2-atmel3.5.4-arduino2.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2
runtime.tools.arduino-avr-gcc-4.9.2-atmel3.5.4-arduino2.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2
runtime.tools.avr-gcc.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2
runtime.tools.arc-elf32-1.6.9+1.0.1.path=/Users/scls/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1
runtime.tools.Intel-arc-elf32-1.6.9+1.0.1.path=/Users/scls/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1
runtime.tools.arc-elf32.path=/Users/scls/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1
runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2
runtime.tools.arduino-avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/scls/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2
runtime.tools.flashpack-2.0.0.path=/Users/scls/Library/Arduino15/packages/Intel/tools/flashpack/2.0.0
runtime.tools.Intel-flashpack-2.0.0.path=/Users/scls/Library/Arduino15/packages/Intel/tools/flashpack/2.0.0
runtime.tools.flashpack.path=/Users/scls/Library/Arduino15/packages/Intel/tools/flashpack/2.0.0
runtime.platform.path=/Users/scls/Arduino.app/Contents/Java/hardware/arduino/avr
runtime.hardware.path=/Users/scls/Arduino.app/Contents/Java/hardware/arduino
========== Stderr:
Chargement de la configuration
Initialisation des paquets...
Préparation des cartes
What is done is unclear here
Is it failing? is it passing?
with mega2560
✘-1 ~/github/scls19fr/gokart_multilaptimer [master|✚ 1…3]
10:39 $ open .arduino-ci.yml
✔ ~/github/scls19fr/gokart_multilaptimer [master|✚ 1…3]
10:40 $ cat .arduino-ci.yml
unittest:
platforms:
- mega2560
compile:
platforms:
- mega2560
✔ ~/github/scls19fr/gokart_multilaptimer [master|…3]
10:40 $ bundle exec arduino_ci_remote.rb
Located Arduino binary... /Users/scls/Arduino.app
The set of compilers (1) isn't empty... ✓
Checking g++ version...
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
...Checking g++ version ✓
libasan availability for g++... true
Requested unittest platform 'mega2560' is defined in 'platforms' YML... ✓
Unit testing test_laptimer.cpp with g++...
Last command: $ g++ -std=c++0x -o /Users/scls/github/scls19fr/gokart_multilaptimer/unittest_test_laptimer.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino -I/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest -I/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/stdlib.cpp /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp /Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
1 warning generated.
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Godmode.cpp:3:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:11: error: use of undeclared identifier 'SPCR'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:24: error: use of undeclared identifier 'DORD'
if (!(SPCR & (1 << DORD))) {
^
1 warning and 2 errors generated.
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Assertion.h:7:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Compare.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
1 warning generated.
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:10:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:11: error: use of undeclared identifier 'SPCR'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:24: error: use of undeclared identifier 'DORD'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:24:5: error: use of undeclared identifier 'Serial'
dbSerialPrintln("Too much sectors");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:14:31: note: expanded from macro 'dbSerialPrintln'
#define dbSerialPrintln(a) dbSerial.println(a)
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:33:5: error: use of undeclared identifier 'Serial'
dbSerialPrintln("Too big InitSector");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:14:31: note: expanded from macro 'dbSerialPrintln'
#define dbSerialPrintln(a) dbSerial.println(a)
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:90:9: error: use of undeclared identifier 'Serial'
dbSerial.print(" Last Lap : "); dbSerial.println(time_lastlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:90:52: error: use of undeclared identifier 'Serial'
dbSerial.print(" Last Lap : "); dbSerial.println(time_lastlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:93:9: error: use of undeclared identifier 'Serial'
dbSerial.print("*********** Best Lap : "); dbSerial.println(time_bestlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:93:52: error: use of undeclared identifier 'Serial'
dbSerial.print("*********** Best Lap : "); dbSerial.println(time_bestlap);
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp:96:7: error: use of undeclared identifier 'Serial'
dbSerial.print("*********** first line");
^
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h:10:18: note: expanded from macro 'dbSerial'
#define dbSerial Serial
^
1 warning and 9 errors generated.
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp:1:
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.h:4:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:10:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/ArduinoDefines.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp:1:
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.h:4:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/Arduino.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:11: error: use of undeclared identifier 'SPCR'
if (!(SPCR & (1 << DORD))) {
^
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/SPI.h:97:24: error: use of undeclared identifier 'DORD'
if (!(SPCR & (1 << DORD))) {
^
1 warning and 2 errors generated.
In file included from /Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp:1:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/ArduinoUnitTests.h:3:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Assertion.h:7:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/unittest/Compare.h:2:
In file included from /Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/pgmspace.h:17:
/Users/scls/.rvm/gems/ruby-2.3.0/bundler/gems/arduino_ci-95857c830209/cpp/arduino/avr/io.h:623:6: warning: "device type not defined" [-W#warnings]
# warning "device type not defined"
^
1 warning generated.
...Unit testing test_laptimer.cpp with g++ ✗
Indexing libraries... ✓
Installing library under test... ✓
Library installed at... /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
Skipping builds; no examples found in /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer...
/Users/scls/github/scls19fr/gokart_multilaptimer/Gemfile
/Users/scls/github/scls19fr/gokart_multilaptimer/Gemfile.lock
/Users/scls/github/scls19fr/gokart_multilaptimer/README.md
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/config.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/debug.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/laptimer.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/mode.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/multilaptimer.ino
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/page.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/pinout.h
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/multilaptimer/utils.h
/Users/scls/github/scls19fr/gokart_multilaptimer/test/test_laptimer.cpp
/Users/scls/github/scls19fr/gokart_multilaptimer/unittest_test_laptimer.cpp.bin.dSYM/Contents/Info.plist
/Users/scls/github/scls19fr/gokart_multilaptimer/unittest_test_laptimer.cpp.bin.dSYM/Contents/Resources/DWARF/unittest_test_laptimer.cpp.bin
...Skipping builds; no examples found in /Users/scls/Documents/Arduino/libraries/gokart_multilaptimer
Failures: 1
This is very clear... it's failing but I don't understand why
error: use of undeclared identifier 'Serial'
Opening multilaptimer/multilaptimer.ino
in Arduino IDE, I can compile this code.
from arduino_ci.
In that case, #79 fixes this and I will close this issue.
As for the other questions:
Including library-under-test from unit test CPP file
09:24 $ tree
.
├── Gemfile
├── Gemfile.lock
├── README.md
├── multilaptimer
│ ├── config.h
│ ├── debug.h
│ ├── laptimer.cpp
│ ├── laptimer.h
│ ├── mode.h
│ ├── multilaptimer.ino
│ ├── page.h
│ ├── pinout.h
│ ├── utils.cpp
│ └── utils.h
└── test
└── test_laptimer.cpp
2 directories, 14 files
✔ ~/github/scls19fr/gokart_multilaptimer [master|…3]
09:24 $ cat test/test_laptimer.cpp
#include <ArduinoUnitTests.h>
#include "../laptimer.h"
//#include "multilaptimer/laptimer.h" // doesn't work also
Based on this tree, the proper way to include laptimer.h
is #include "../multilaptimer/laptimer.h"
.
mega
and mega2650
See the section in REFERENCE.md about defining your own platforms:
https://github.com/ianfixes/arduino_ci/blob/master/REFERENCE.md#overriding-default-build-behavior
The ones included by default are here:
https://github.com/ianfixes/arduino_ci/blob/master/misc/default.yml
You can put a package:
and platforms:
section in your own YAML file (with whatever the definitions of those 2 boards are), and that will add to the default set of boards.
warning "device type not defined"
This could be due to improper configuration of the mega2650
board in your .arduino-ci.yaml
. Usually the use of these boards creates a particular preprocessor flag (like __AVR_ATmega328P__
, shown here), and this flag will trigger the definition of all board properties -- up to and including things like serial port objects. That's the first place I'd look.
from arduino_ci.
Thanks a lot @ianfixes
I feel I'm becoming an arduino_ci addict!
from arduino_ci.
Related Issues (20)
- Output errors to stderr HOT 11
- Empty examples folder causes build to fail HOT 2
- arduino_ci.rb fails to report compile error
- The build-CI does not support setWireTimeout(). HOT 1
- Can RP2040 build environment be supported? HOT 10
- compiling unit tests uses arduino platform specific code HOT 6
- running in gitlab CI HOT 3
- Platform.io Support HOT 3
- Improve factorization of "unused space"
- Running "bundle install --path vendor/bundle" generates deprecated warning HOT 1
- Use temporary directories for unit test artifacts
- ESP32 failing to install in CI build HOT 2
- Update documentation to recommend version pinning
- ESP32 flags unused function as error (should be warning) HOT 9
- libraries: "SoftwareSerial" does not work. HOT 11
- "Bad file descriptor" error when installing HOT 2
- Implement Wire.h slave device mock support
- 1.6.0 error: undefined method `library_of_name' for nil:NilClass (NoMethodError) HOT 5
- Show differences lined up and in quotes
- Unable to find library location on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_ci.