Skip to content

Commit 4014724

Browse files
committed
[CI] Do not build all variants
Travis build time increases with the addition of new board. This should not exceed 50 min, so filter some boards. Signed-off-by: Frederic.Pillon <[email protected]>
1 parent dbf538e commit 4014724

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

CI/build/arduino-builder.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
)
127127
exclude_file_default = os.path.join("conf", "exclude_list.txt")
128128
cores_config_file_default = os.path.join("conf", "cores_config.json")
129+
cores_config_file_travis = os.path.join("conf", "cores_config_travis.json")
129130

130131
maintainer_default = "STM32"
131132
arch_default = "stm32"
@@ -224,7 +225,10 @@ def load_core_config():
224225
), "User core configuration JSON file does not exist"
225226
cores_config_filename = args.config
226227
else:
227-
cores_config_filename = cores_config_file_default
228+
if args.travis:
229+
cores_config_filename = cores_config_file_travis
230+
else:
231+
cores_config_filename = cores_config_file_default
228232
print("Cores configuration JSON file that will be used: " + cores_config_filename)
229233
try:
230234
cores_config_file = open(cores_config_filename, "r")
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"cores": [
3+
{
4+
"maintainer": "STM32",
5+
"architecture": "stm32",
6+
"boards": [
7+
{
8+
"name": "NUCLEO_L031K6",
9+
"options": "opt=oslto"
10+
}
11+
],
12+
"sketches": [
13+
{
14+
"pattern": "^.*$",
15+
"applicable": false,
16+
"boards": [
17+
"BLACKPILL_F103C8B",
18+
"BLACK_F407VG",
19+
"BLACK_F407ZE",
20+
"BLACK_F407ZG",
21+
"BLUEPILL_F103C6",
22+
"BLUEPILL_F103C8B",
23+
"NUCLEO_H743ZI",
24+
"NUCLEO_L496ZG",
25+
"NUCLEO_L4R5ZI",
26+
"RAK811_TRACKERA"
27+
]
28+
}
29+
]
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)