-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use arduino-cli
backend
#218
Conversation
9a389ee
to
427490c
Compare
@per1234 one thing I'm struggling with here is how much to rely on the output of I could imagine relying on a lot of its output (which us unbelievably helpful by being json-formatted, btw), but for some of the unit tests I'd prefer to symlink dummy libraries into the Arduino libraries dir rather than fake or mock the output of |
Is this the same behavior you're experiencing?
|
Aah, this was my own mistake. Comparing |
I take that back, it's failing in a very narrow case $ ls -lo $(./arduino-cli config dump --format json | jq -r ".directories.user")/libraries | grep TestSomething
lrwxr-xr-x 1 ianfixes 78 Jan 5 2019 TestSomething -> /Users/ianfixes/Development/arduino_ci/SampleProjects/TestSomething
$ ./arduino-cli lib list | grep TestSomething
TestSomething 0.1.0 - user Arduino CI unit test example
$ cat /Users/ianfixes/Development/arduino_ci/SampleProjects/TestSomething/library.properties
name=TestSomething
version=0.1.0
author= <my info>
maintainer= <my info>
sentence=Arduino CI unit test example
paragraph=A skeleton library demonstrating CI and unit tests
category=Other
url=https://github.com/Arduino-CI/arduino_ci/SampleProjects/TestSomething
architectures=avr,esp8266
includes=do-something.h
$ ./arduino-cli lib deps TestSomething
Error resolving dependencies for TestSomething: looking for library: library TestSomething not found
In other words,
Am I missing something obvious or quirky here? |
427490c
to
ba73d16
Compare
a333932
to
3451278
Compare
464a21c
to
0a078b2
Compare
4e91fa9
to
71b7dce
Compare
41d81ff
to
2a5162a
Compare
2a5162a
to
1f8ba56
Compare
Highlights from
CHANGELOG.md
🎉 Arduino backend is now
arduino-cli
version0.13.0
🎉Added
arduino_ci.rb
CI script against the ruby library instead of an actual Arduino projectarduino_ci
itself as if it were a librart, resolving a minor annoyance to this developer.Changed
arduino-cli
version0.13.0
ArduinoCmd
is nowArduinoBackend
CppLibrary
now relies largely onArduinoBackend
instead of making its own judgements about libraries (metadata, includes, and examples)ArduinoBackend
functionality related toCppLibrary
now lives inCppLibrary
CppLibrary
now works in an installation-first manner for exposure toarduino-cli
's logic -- without installation, there is no ability to reason about librariesCppLibrary
forces just-in-time recursive dependency installation in order to work sensiblyArduinoBackend
maintains the central "best guess" logic on what a library (on disk) might be namedDeprecated
arduino_ci_remote.rb
CLI switch--skip-compilation
arduino_ci_remote.rb
in favor ofarduino_ci.rb
Removed
ARDUINO_CI_SKIP_SPLASH_SCREEN_RSPEC_TESTS
no longer affects any tests because there are no longer splash screens since switching toarduino-cli
Fixed
library.properties
and the directory names, which can cause cryptic failuresLibraryProperties
skips over parse errors instead of crashing: only lines with non-empty keys and non-nil values are recordedIssues Fixed
library_properties.rb
#224