jamesportman
Member
Hi,
My goal is to run a compilation only test (think CI/CD),
I have searched and found lots of info but can't figure this out quite.
I am trying to use arduino-builder, it does work but for whatever reason it really wants to open the gui version of teensy loader, even when not carrying out an upload.
This works fine on normal PC but it won't inside docker or on a ci server.
I have seen arduino-cli but that also wants to use the gui teensy loader.
Is there a way to stop arduino-builder from trying to run the gui app?
My goal is to run a compilation only test (think CI/CD),
I have searched and found lots of info but can't figure this out quite.
I am trying to use arduino-builder, it does work but for whatever reason it really wants to open the gui version of teensy loader, even when not carrying out an upload.
This works fine on normal PC but it won't inside docker or on a ci server.
I have seen arduino-cli but that also wants to use the gui teensy loader.
Is there a way to stop arduino-builder from trying to run the gui app?
Code:
ARDUINO_DIR="/home/james/bin/arduino-1.8.13-linux64/arduino-1.8.13"
TMP_DIR="$(mktemp -d)"
"${ARDUINO_DIR}/arduino-builder" \
-hardware "${ARDUINO_DIR}/hardware" \
-tools "${ARDUINO_DIR}/tools-builder" \
-tools "${ARDUINO_DIR}/hardware/tools/avr" \
-tools "${ARDUINO_DIR}/hardware/tools/teensy" \
-libraries "${ARDUINO_DIR}/libraries" \
-build-path "${TMP_DIR}" \
-fqbn "teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-gb" \
aprogram.ino