Update .gitlab-ci.yml

This commit is contained in:
Dorian Zedler 2021-05-10 14:34:41 +00:00
parent e5451b5aae
commit 49ca4b6312

View file

@ -2,15 +2,22 @@ image: python:3.6
stages: stages:
- build - build
- release
before_script: before_script:
- "pip install -U platformio" - "pip install -U platformio"
- "cp ampel-firmware/config.public.h ampel-firmware/config.h" - "cp ampel-firmware/config.public.h ampel-firmware/config.h"
build: esp8266:
stage: build stage: build
script: "platformio run" script:
- "platformio run --environment esp8266"
- cp .pio/build/esp8266/firmware.bin esp8266.bin
artifacts: artifacts:
paths: paths:
- .pio/build/esp8266/firmware.bin - esp8266.bin
expire_in: 1 week expire_in: 1 week
release:
stage: release