language: python
python:
  - '2.7'
sudo: false
install:
  - pip install -U platformio

env:
  - ENV=sonoff
  - ENV=sonoff-minimal
  - ENV=sonoff-basic
  - ENV=sonoff-classic
  - ENV=sonoff-knx
  - ENV=sonoff-sensors
  - ENV=sonoff-display
  - ENV=sonoff-ir
  - ENV=sonoff-BG
  - ENV=sonoff-BR
  - ENV=sonoff-CN
  - ENV=sonoff-CZ
  - ENV=sonoff-DE
  - ENV=sonoff-ES
  - ENV=sonoff-FR
  - ENV=sonoff-GR
  - ENV=sonoff-HE
  - ENV=sonoff-HU
  - ENV=sonoff-IT
  - ENV=sonoff-KO
  - ENV=sonoff-NL
  - ENV=sonoff-PL
  - ENV=sonoff-PT
  - ENV=sonoff-RU
  - ENV=sonoff-SE
  - ENV=sonoff-SK
  - ENV=sonoff-TR
  - ENV=sonoff-TW
  - ENV=sonoff-UK

script:
  - platformio run -e $ENV
before_deploy:
  - for file in .pioenvs/*/firmware.bin; do cp $file ${file%/*}.bin; done
