forked from espressif/esp-iot-solution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (66 loc) · 1.68 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
before_script:
- export PATH="/opt/xtensa-esp32-elf/bin:$PATH"
- export PATH="/opt/esp32ulp-elf-binutils/bin:$PATH"
- export PATH="$CI_PROJECT_DIR/submodule/esp-idf/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 submodule update -f --init --recursive
variables:
IDF_PATH: "$CI_PROJECT_DIR/submodule/esp-idf"
IOT_SOLUTION_PATH: "$CI_PROJECT_DIR"
build:
stage: build
tags:
- iot
image: $CI_DOCKER_REGISTRY/esp32-ci-env
script:
- cd examples/check_pedestrian_flow
- make defconfig
- idf.py build
- cd ../eth2wifi
- make defconfig
- idf.py build
- cd ../oled_screen_module
- make defconfig
- idf.py build
- cd ../smart_device/alink_smart_device_demo
- make defconfig
- idf.py build
- cd ..
- cd ../empty_project
- make defconfig
- idf.py build
- cd ../hmi/ugfx_example
- make defconfig
- idf.py build
- cd ../lvgl_example
- make defconfig
- idf.py build
- cd ../
- cd ../touch_pad_evb
- make defconfig
- idf.py build
- cd ../ulp_examples/ulp_watering_device
- make defconfig
- make -j8
- cd ../ulp_rtc_gpio
- make defconfig
- make -j8
- cd ../ulp_tsens
- make defconfig
- make -j8
- cd ../ulp_spi
- make defconfig
- make -j8
- cd ../ulp_hall_sensor
- make defconfig
- make -j8
- cd ../../../tools/unit-test-app
- make defconfig
- make IOT_TEST_ALL=1 -j8