forked from espressif/esp-aws-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (41 loc) · 1.21 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
stages:
- build
variables:
BATCH_BUILD: "1"
V: "0"
MAKEFLAGS: "-j5 --no-keep-going"
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
IDF_GITHUB_REPO: "https://github.com/espressif"
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 --branch master --depth 1 $IDF_GITHUB_REPO/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