don't build & test on production

This commit is contained in:
Nicu Hodos 2023-01-20 14:01:17 +01:00
parent c8710a1cc9
commit e75fdac730

View File

@ -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: