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