barback32/.gitlab-ci.yml
Morgan 'ARR\!' Allen c9f5de05c2 whered that go?
2020-10-28 20:47:20 -07:00

37 lines
730 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
- rm 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