-
Notifications
You must be signed in to change notification settings - Fork 34
Use arduino-cli backend
#218
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
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-cliversion0.13.0🎉Added
arduino_ci.rbCI script against the ruby library instead of an actual Arduino projectarduino_ciitself as if it were a librart, resolving a minor annoyance to this developer.Changed
arduino-cliversion0.13.0ArduinoCmdis nowArduinoBackendCppLibrarynow relies largely onArduinoBackendinstead of making its own judgements about libraries (metadata, includes, and examples)ArduinoBackendfunctionality related toCppLibrarynow lives inCppLibraryCppLibrarynow works in an installation-first manner for exposure toarduino-cli's logic -- without installation, there is no ability to reason about librariesCppLibraryforces just-in-time recursive dependency installation in order to work sensiblyArduinoBackendmaintains the central "best guess" logic on what a library (on disk) might be namedDeprecated
arduino_ci_remote.rbCLI switch--skip-compilationarduino_ci_remote.rbin favor ofarduino_ci.rbRemoved
ARDUINO_CI_SKIP_SPLASH_SCREEN_RSPEC_TESTSno longer affects any tests because there are no longer splash screens since switching toarduino-cliFixed
library.propertiesand the directory names, which can cause cryptic failuresLibraryPropertiesskips over parse errors instead of crashing: only lines with non-empty keys and non-nil values are recordedIssues Fixed
library_properties.rb#224