When trying to do a platformio ci
you have to specify a board even when platform
is set to native
.
$ platformio ci --lib="." --keep-build-dir --project-option="platform=native" tests/main.cpp
Error: Can't find PlatformIO build environments.
Please specify `--board` or path to `platformio.ini` with predefined environments using `--project-conf` option
As the message suggests, a workaround is to create and specify a platformio.ini in which the native platform is defined.
Any chance this can be made to work without the .ini file?