From 8c5efc0ad08a6be5b3103cda14abe0c68adb412e Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sun, 20 Jun 2021 21:47:18 +0200 Subject: [PATCH 1/5] move .drone.yml to the right place --- gateway/.drone.yml => .drone.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename gateway/.drone.yml => .drone.yml (100%) diff --git a/gateway/.drone.yml b/.drone.yml similarity index 100% rename from gateway/.drone.yml rename to .drone.yml From fd06746059e19274aa07fd8345f45ea61f09ee0e Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sun, 20 Jun 2021 21:48:45 +0200 Subject: [PATCH 2/5] update pipeline to subfolder --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index a13c130..3affb9f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,10 +10,12 @@ platform: steps: - name: build commands: + - cd gateway - pio run -e pro-mini - name: upload commands: + - cd gateway - pio run -e pro-mini -t upload when: target: From 52c4444dbd508896256f1c35659877686cc5bfdd Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sun, 20 Jun 2021 21:54:09 +0200 Subject: [PATCH 3/5] fix upload with timeout --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3affb9f..a676343 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: - name: upload commands: - cd gateway - - pio run -e pro-mini -t upload + - echo -n 'reset' > /dev/ttyUSB0; sleep 1s; pio run -e pro-mini -t upload when: target: - production From bb937ed4a12172a32881e5456054cf1d3cba0ca7 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sun, 20 Jun 2021 21:58:02 +0200 Subject: [PATCH 4/5] pipeline: upload only --- .drone.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index a676343..37d826d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,14 +8,10 @@ platform: arch: arm steps: -- name: build - commands: - - cd gateway - - pio run -e pro-mini - - name: upload commands: - cd gateway + - pio run -e pro-mini - echo -n 'reset' > /dev/ttyUSB0; sleep 1s; pio run -e pro-mini -t upload when: target: From 2520b008e405d88e4226c9a8dee4a540b2dd92e4 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sun, 20 Jun 2021 22:02:45 +0200 Subject: [PATCH 5/5] use avrdude for upload --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 37d826d..23c1d1d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: commands: - cd gateway - pio run -e pro-mini - - echo -n 'reset' > /dev/ttyUSB0; sleep 1s; pio run -e pro-mini -t upload + - 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