barback32/.gitlab-ci.yml
2020-10-28 20:44:13 -07:00

37 lines
727 B
YAML

stages:
- build
- flash
build:
image: espressif/idf:release-v4.1
stage: build
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- sdkconfig
- build
script:
- if [ -f sdkconfig ]; then
- sdkconfig
- fi
- idf.py reconfigure
- echo "BB-CI-$((1 + RANDOM % 999))" > bbid
- sed -i -e s/BARBACK_ID=\"Barback\"/BARBACK_ID=\"`cat bbid`\"/ sdkconfig
- idf.py reconfigure
- idf.py build
flash:
image: espressif/idf:release-v4.1
stage: flash
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- sdkconfig
- build
script:
- cat sdkconfig
- idf.py flash