-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
94 lines (77 loc) · 3.54 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
stages:
- build
- test
build_mfg_tool:
stage: build
image:
name: python:3.9-bullseye
entrypoint: [ '/bin/bash', '-c', 'ln -snf /bin/bash /bin/sh && /bin/bash -c $0' ]
tags:
- build
artifacts:
paths:
- mfg_tool/dist/
expire_in: 1 week
script:
- cd mfg_tool
- python3 -m pip install --upgrade pip build setuptools
- python3 -m build
test_mfg_tool:
stage: test
image: python:3.9-bullseye
tags:
- build
needs:
- build_mfg_tool
script:
- cd mfg_tool
- python3 -m pip install --upgrade pip build setuptools
- python3 -m pip install dist/esp_matter_mfg_tool*.whl
- export PATH=$PATH:$PWD/test_data
- |
esp-matter-mfg-tool -cn "My bulb" -v 0xFFF2 -p 0x8001 --pai \
-k test_data/Chip-Test-PAI-FFF2-8001-Key.pem \
-c test_data/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd test_data/Chip-Test-CD-FFF2-8001.der
- |
esp-matter-mfg-tool -cn "My bulb" -v 0xFFF2 -p 0x8001 --pai \
-k test_data/Chip-Test-PAI-FFF2-8001-Key.pem \
-c test_data/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd test_data/Chip-Test-CD-FFF2-8001.der \
--dac-in-secure-cert --target esp32
- |
esp-matter-mfg-tool -cn "My bulb" -v 0xFFF2 -p 0x8001 --pai \
-k test_data/Chip-Test-PAI-FFF2-8001-Key.pem \
-c test_data/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd test_data/Chip-Test-CD-FFF2-8001.der \
--dac-in-secure-cert --ds-peripheral \
--target esp32h2 --efuse-key-id 1
- |
esp-matter-mfg-tool -n 5 -cn "My bulb" -v 0xFFF2 -p 0x8001 --pai \
-k test_data/Chip-Test-PAI-FFF2-8001-Key.pem \
-c test_data/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd test_data/Chip-Test-CD-FFF2-8001.der
- |
esp-matter-mfg-tool -cn "My Bulb" -v 0xFFF2 -p 0x8001 --pai \
-c test_data/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd test_data/Chip-Test-CD-FFF2-8001.der \
--dac-key test_data/DAC_key.pem \
--dac-cert test_data/DAC_cert.pem
- |
esp-matter-mfg-tool -cn "My bulb" -v 0xFFF2 -p 0x8001 --pai \
-k test_data/Chip-Test-PAI-FFF2-8001-Key.pem \
-c test_data/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd test_data/Chip-Test-CD-FFF2-8001.der \
--passcode 20202021 --discriminator 3840 \
--enable-rotating-device-id \
--rd-id-uid d2f351f57bb9387445a5f92a601d1c14
- |
esp-matter-mfg-tool -cn "My bulb" -v 0xFFF2 -p 0x8001 --pai \
-k test_data/Chip-Test-PAI-FFF2-8001-Key.pem \
-c test_data/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd test_data/Chip-Test-CD-FFF2-8001.der \
--csv test_data/extra_nvs_key_config.csv \
--mcsv test_data/extra_nvs_key_value.csv
- esp-matter-mfg-tool -v 0xFFF2 -p 0x8001 -cd test_data/Chip-Test-CD-FFF2-8001.der