barback32/.gitlab-ci.yml

38 lines
730 B
YAML
Raw Normal View History

2020-10-26 22:45:05 -04:00
stages:
- build
2020-10-27 00:16:32 -04:00
- flash
2020-10-26 22:45:05 -04:00
build:
2020-10-28 22:54:47 -04:00
image: espressif/idf:release-v4.1
2020-10-26 22:45:05 -04:00
stage: build
2020-10-28 23:38:05 -04:00
cache:
key: "$CI_BUILD_REF_NAME"
2020-10-28 21:42:38 -04:00
paths:
2020-10-28 22:26:48 -04:00
- sdkconfig
2020-10-28 23:38:05 -04:00
- build
2020-10-28 21:42:38 -04:00
2020-10-26 22:45:05 -04:00
script:
2020-10-28 22:01:30 -04:00
- if [ -f sdkconfig ]; then
2020-10-28 23:47:20 -04:00
- rm sdkconfig
2020-10-28 22:01:30 -04:00
- fi
2020-10-28 20:09:21 -04:00
- idf.py reconfigure
- echo "BB-CI-$((1 + RANDOM % 999))" > bbid
2020-10-28 22:13:37 -04:00
- sed -i -e s/BARBACK_ID=\"Barback\"/BARBACK_ID=\"`cat bbid`\"/ sdkconfig
2020-10-28 23:44:13 -04:00
- idf.py reconfigure
2020-10-26 22:45:05 -04:00
- idf.py build
2020-10-27 00:16:32 -04:00
flash:
2020-10-28 22:54:47 -04:00
image: espressif/idf:release-v4.1
2020-10-27 00:16:32 -04:00
stage: flash
2020-10-28 23:38:05 -04:00
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- sdkconfig
- build
2020-10-27 00:16:32 -04:00
script:
2020-10-28 22:22:41 -04:00
- cat sdkconfig
2020-10-27 00:16:32 -04:00
- idf.py flash