I am discovering continuous integration and I want to try platformio CI with gitlab.
I follow this documentation : GitLab — PlatformIO latest documentation
My project use a custom board called KZV3 that has its own json under a folder called board.
I also have some custom under a lib/ folder.
pio run -d project/tsl2591 -c project/tsl2591/platformio.ini
I am using the command above which is working on local but with gitlab I got this error
`Error: Unknown board ID 'KZV3'`
My .gitlab-ci.yml file :
image: python:3.9 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache" PLATFORMIO_CACHE_DIR: "$CI_PROJECT_DIR/.platformio-cache" cache: paths: - .pip-cache/ - .platformio-cache/ stages: - tsl2591 before_script: - "pip install -U platformio" job: stage: tsl2591 script: "pio run -d project/tsl2591 -c project/tsl2591/platformio.ini"
My platformio.ini precise where to found the board and lib folders that why i am using the -c argument.
Is there any example of syntax for the yml file with platformio custom board or lib ?
Note : I assume that gitlab execute the command
pio run -d -c in the root of the project.
I am also not very famillar with docker but my example should be easy enough to not special setup outside of platformio command.