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:
|
||||
- cd gateway
|
||||
- pio check -e pro-mini
|
||||
when:
|
||||
target:
|
||||
exclude:
|
||||
- production
|
||||
|
||||
- name: native tests
|
||||
commands:
|
||||
- cd gateway
|
||||
- pio test -e native
|
||||
when:
|
||||
target:
|
||||
exclude:
|
||||
- production
|
||||
|
||||
- name: embedded tests
|
||||
commands:
|
||||
- cd gateway
|
||||
- LD_LIBRARY_PATH=~/.platformio/packages/tool-simavr/lib/ pio test -e embedded --without-uploading
|
||||
when:
|
||||
target:
|
||||
exclude:
|
||||
- production
|
||||
|
||||
- name: upload firmware
|
||||
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
|
||||
- service ser2net start
|
||||
when:
|
||||
branch:
|
||||
- gateway
|
||||
target:
|
||||
- production
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user