Merge branch 'master' of https://git.makerlab-murnau.de/co2-ampel/software
This commit is contained in:
commit
0514952897
1 changed files with 20 additions and 2 deletions
|
@ -2,11 +2,29 @@ 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"
|
||||||
|
|
||||||
job:
|
esp8266:
|
||||||
stage: build
|
stage: build
|
||||||
script: "platformio run"
|
script:
|
||||||
|
- "platformio run --environment esp8266"
|
||||||
|
- cp .pio/build/esp8266/firmware.bin esp8266.bin
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- esp8266.bin
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
|
release:
|
||||||
|
image: inetprocess/gitlab-release
|
||||||
|
stage: release
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
dependencies:
|
||||||
|
- esp8266
|
||||||
|
script:
|
||||||
|
- gitlab-release --message '' ./*.bin
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue