--- kind: pipeline type: exec name: gateway pipeline platform: os: linux arch: arm steps: - name: static check commands: - cd gateway - pio check -e pro-mini when: target: exclude: - production - name: native tests commands: - cd gateway - pio test -e native when: target: exclude: - production - name: upload firmware commands: - cd gateway - service ser2net stop - pio run -e pro-mini - echo '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: target: - production trigger: branch: - gateway - gw/* node: host: homebox