From 4c9df3f51a1ed5d66114202d549420f694bbbb20 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 eb047d53c59c41e0dee6c19d2f0b4e11a5a5a156 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 2d67608cced47483de3acfb6ea49bc4f40779827 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 3bd087332b2cdbe83a9a2b448a4ccafe4061205e 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 47a642174875465e7e6b04d5ba291c254b1493e6 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