diff --git a/gateway/.drone.yml b/.drone.yml similarity index 59% rename from gateway/.drone.yml rename to .drone.yml index a13c130..23c1d1d 100644 --- a/gateway/.drone.yml +++ b/.drone.yml @@ -8,13 +8,11 @@ platform: arch: arm steps: -- name: build - commands: - - pio run -e pro-mini - - name: upload commands: - - pio run -e pro-mini -t upload + - cd gateway + - 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 when: target: - production