--- kind: pipeline type: exec name: gateway pipeline platform: os: linux arch: arm steps: - name: native tests commands: - cd gateway - pio test -e native - name: embedded tests commands: - cd gateway - LD_LIBRARY_PATH=~/.platformio/packages/tool-simavr/lib/ pio test -e embedded --without-uploading - name: upload firmware commands: - cd gateway - service ser2net stop - pio run -e pro-mini - echo -n 'reset' > /dev/ttyUSB0; sleep 1s; avrdude -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:.pio/build/pro-mini/firmware.hex:i -v - service ser2net start when: branch: - gateway trigger: branch: - gateway - gw/* node: host: homebox