diff --git a/.drone.yml b/.drone.yml index b24ff98..ede9512 100644 --- a/.drone.yml +++ b/.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: