43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
stages:
|
|
- build
|
|
|
|
variables:
|
|
BATCH_BUILD: "1"
|
|
V: "0"
|
|
MAKEFLAGS: "-j5 --no-keep-going"
|
|
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
|
|
|
|
build_demo:
|
|
stage: build
|
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
|
tags:
|
|
- build
|
|
script:
|
|
# add gitlab ssh key
|
|
- export PATH="$IDF_PATH/tools:$PATH"
|
|
- mkdir -p ~/.ssh
|
|
- chmod 700 ~/.ssh
|
|
- echo -n $GITLAB_KEY > ~/.ssh/id_rsa_base64
|
|
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
|
|
- chmod 600 ~/.ssh/id_rsa
|
|
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
|
- git --version
|
|
- git submodule update --init --recursive
|
|
- git clone --recursive --depth 1 $GITLAB_SSH_SERVER/idf/esp-idf.git
|
|
- export PATH="$IDF_PATH/tools:$PATH"
|
|
- cd esp-idf
|
|
- ./install.sh
|
|
- . export.sh
|
|
- cd ..
|
|
- cd examples/thing_shadow
|
|
- cat sdkconfig.ci >> sdkconfig.defaults
|
|
- make defconfig && make -j4
|
|
- make clean && rm -rf build
|
|
- idf.py build
|
|
- cd ../..
|
|
- cd examples/subscribe_publish
|
|
- cat sdkconfig.ci >> sdkconfig.defaults
|
|
- make defconfig && make -j4
|
|
- make clean && rm -rf build
|
|
- idf.py build
|