While writing a library, is
pio ci --lib . --board whatever examples/whatever really the best way to compile an example?
- The docs reference it: http://docs.platformio.org/en/latest/userguide/cmd_ci.html
- Projects use it: https://gitlab.com/painlessMesh/painlessMesh/issues/87
The issue I have is that
pio ci compiles all the files every time, which takes a while, and there is no good reason for it to be necessary for me to wait half a minute every time I compile a one line change.
I tried setting a build-dir and keep-build-dir, but it still compiled everything.
The full command I’m testing with is:
pio ci examples/mqtt_pub/ -l . --board d1_mini --build-dir /tmp/piobuild --keep-build-dir
I also tried a platformio.ini with
[platformio] src_dir = examples/mqtt_pub lib_dir = ./
but that has weird dependency issues, and I can’t find any examples of people doing that so I don’t think it’s the suggested way to do it?
What is the way people normally compile library examples for testing during development?