don't build & test on production
This commit is contained in:
parent
c8710a1cc9
commit
e75fdac730
16
.drone.yml
16
.drone.yml
@ -12,16 +12,28 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- cd gateway
|
- cd gateway
|
||||||
- pio check -e pro-mini
|
- pio check -e pro-mini
|
||||||
|
when:
|
||||||
|
target:
|
||||||
|
exclude:
|
||||||
|
- production
|
||||||
|
|
||||||
- name: native tests
|
- name: native tests
|
||||||
commands:
|
commands:
|
||||||
- cd gateway
|
- cd gateway
|
||||||
- pio test -e native
|
- pio test -e native
|
||||||
|
when:
|
||||||
|
target:
|
||||||
|
exclude:
|
||||||
|
- production
|
||||||
|
|
||||||
- name: embedded tests
|
- name: embedded tests
|
||||||
commands:
|
commands:
|
||||||
- cd gateway
|
- cd gateway
|
||||||
- LD_LIBRARY_PATH=~/.platformio/packages/tool-simavr/lib/ pio test -e embedded --without-uploading
|
- LD_LIBRARY_PATH=~/.platformio/packages/tool-simavr/lib/ pio test -e embedded --without-uploading
|
||||||
|
when:
|
||||||
|
target:
|
||||||
|
exclude:
|
||||||
|
- production
|
||||||
|
|
||||||
- name: upload firmware
|
- name: upload firmware
|
||||||
commands:
|
commands:
|
||||||
@ -31,8 +43,8 @@ steps:
|
|||||||
- 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
|
- 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
|
||||||
- service ser2net start
|
- service ser2net start
|
||||||
when:
|
when:
|
||||||
branch:
|
target:
|
||||||
- gateway
|
- production
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user