From 1605a29ab4e108f96e42cc5f5b61b28d30de4b29 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 8b290c14e9b2a3fad5ad53baf1f828f819cf499e 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 fc92232012308d45d457bade35dcb43ae84913f3 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 480c8d2fe3f8624e79382b64e5cc6f722f63060c 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 c9cf92b23c0a33c6b6995e4f489490a960670c66 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