forked from espressif/esp-rainmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
69 lines (66 loc) · 1.66 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
stages:
- build
variables:
BATCH_BUILD: "1"
V: "0"
MAKEFLAGS: "-j5 --no-keep-going"
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
IDF_CI_BUILD: "1"
build_demo:
stage: build
image: $CI_DOCKER_REGISTRY/esp32-ci-env
tags:
- build
artifacts:
paths:
- examples/gpio/build/gpio.bin
- examples/switch/build/switch.bin
- examples/led_light/build/led_light.bin
- examples/fan/build/fan.bin
- examples/temperature_sensor/build/temperature_sensor.bin
- examples/multi_device/build/multi_device.bin
expire_in: 6 mos
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 --branch master --depth 1 $GITLAB_SSH_SERVER/idf/esp-idf.git
- cd esp-idf
- export IDF_PATH=$PWD
- ./install.sh
- . export.sh
- cd ..
- cd examples/gpio
- idf.py build
- rm -rf build/ sdkconfig
- make -j8
- cd ../switch
- idf.py build
- rm -rf build/ sdkconfig
- make defconfig
- make -j8
- cd ../led_light
- idf.py build
- rm -rf build/ sdkconfig
- make defconfig
- make -j8
- cd ../fan
- idf.py build
- rm -rf build/ sdkconfig
- make defconfig
- make -j8
- cd ../temperature_sensor
- idf.py build
- rm -rf build/ sdkconfig
- make defconfig
- make -j8
- cd ../multi_device
- idf.py build
- rm -rf build/ sdkconfig
- make defconfig
- make -j8