PumpenSteuerung/.gitlab-ci.yml
lukas 62cea9932e correct version parsing
and float conversion of percent value
2021-03-06 14:39:32 +01:00

23 lines
461 B
YAML

image: nikolaik/python-nodejs:python3.9-nodejs15-slim
stages:
- build
cache:
paths:
- "~/.platformio"
- ./interface/node_modules
before_script:
- "pip install -U platformio"
- "platformio update"
build:
stage: build
script:
- "platformio run -e esp12e"
- vers=$(grep -Po '[0-9]+\.[0-9]+\.[0-9]+[-0-9A-Za-z]*(?=\")' ./src/Pins.h)
- mv .pio/build/esp12e/*.bin Pumpensteuerung-${vers}.bin
artifacts:
paths:
- ./*.bin