2020-12-08 15:12:15 +00:00
|
|
|
image: nikolaik/python-nodejs:python3.9-nodejs15-slim
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- "~/.platformio"
|
2020-12-12 15:10:06 +00:00
|
|
|
- ./interface/node_modules
|
2020-12-08 15:12:15 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "pip install -U platformio"
|
|
|
|
- "platformio update"
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
2020-12-12 14:58:05 +00:00
|
|
|
script:
|
|
|
|
- "platformio run -e esp12e"
|
2021-03-06 13:39:32 +00:00
|
|
|
- vers=$(grep -Po '[0-9]+\.[0-9]+\.[0-9]+[-0-9A-Za-z]*(?=\")' ./src/Pins.h)
|
2020-12-12 15:10:06 +00:00
|
|
|
- mv .pio/build/esp12e/*.bin Pumpensteuerung-${vers}.bin
|
2020-12-08 15:12:15 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-12-12 14:58:05 +00:00
|
|
|
- ./*.bin
|