-
Notifications
You must be signed in to change notification settings - Fork 93
/
.gitlab-ci.yml
75 lines (72 loc) · 2.32 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
stages:
- build_esp32
- build_esp8266
variables:
BATCH_BUILD: "1"
V: "0"
MAKEFLAGS: "-j5 --no-keep-going"
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
IDF_CI_BUILD: "1"
build_esp32_demo:
stage: build_esp32
image: $CI_DOCKER_REGISTRY/esp32-ci-env
tags:
- build
script:
# add gitlab ssh key
- 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/iothub_client_sample_mqtt
- make defconfig && make -j5
- make clean && rm sdkconfig && rm -r build
- echo "CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE=y" >> sdkconfig.defaults
- make defconfig && make -j5
- make clean && rm sdkconfig && rm -r build
- idf.py build
- cd ../../
- cd examples/prov_dev_client_ll_sample
- make defconfig && make -j5
- make clean && rm sdkconfig && rm -r build
- echo "CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE=y" >> sdkconfig.defaults
- make defconfig && make -j5
- make clean && rm sdkconfig && rm -r build
- idf.py build
build_esp8266_demo:
stage: build_esp8266
image: $CI_DOCKER_REGISTRY/esp8266-ci-env-new
tags:
- build
script:
# add gitlab ssh key
- 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 clone -b v3.3 --recursive --depth 1 $GITLAB_SSH_SERVER/sdk/ESP8266_RTOS_SDK.git
- cd ESP8266_RTOS_SDK
- source tools/ci/configure_ci_environment.sh
- cd ..
- git submodule update --init --recursive
- export IDF_PATH=$CI_PROJECT_DIR/ESP8266_RTOS_SDK
- cd examples/iothub_client_sample_mqtt
- make defconfig
- make
- cd ../../
- cd examples/prov_dev_client_ll_sample
- make defconfig
- make