diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000000..acb3ed1ea9a0 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,11 @@ +{ + "name": "Tasmota", + "image": "mcr.microsoft.com/devcontainers/python:3", + "customizations": { + "vscode": { + "extensions": [ + "platformio.platformio-ide" + ] + } + } +} diff --git a/.ona/automations.yaml b/.ona/automations.yaml new file mode 100644 index 000000000000..fb12745888a4 --- /dev/null +++ b/.ona/automations.yaml @@ -0,0 +1,19 @@ +tasks: + install-platformio: + name: Install PlatformIO + description: Install the PlatformIO CLI and its dependencies via pip. + command: | + pip install --upgrade platformio + pio --version + triggeredBy: + - postDevcontainerStart + + build: + name: Build firmware + description: Build a Tasmota firmware variant. Defaults to tasmota (ESP8266). Override with PIO_ENV env var, e.g. PIO_ENV=tasmota32 ona auto task start build. + command: | + pio run -e ${PIO_ENV:-tasmota} + triggeredBy: + - manual + dependsOn: + - install-platformio