mirror of https://github.com/ARMmbed/mbed-os.git
Allowing examples to specify which repo source to use for testing.
They can pick from either the mbed developer site or the GitHub repository.pull/4385/head
parent
186f406c24
commit
3966139cd7
|
@ -6,6 +6,7 @@
|
|||
"mbed": [
|
||||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky"
|
||||
],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : [],
|
||||
"toolchains" : [],
|
||||
|
@ -23,6 +24,7 @@
|
|||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-hashing",
|
||||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-authcrypt"
|
||||
],
|
||||
"test-repo-source": "mbed",
|
||||
"features" : [],
|
||||
"targets" : ["K64F", "NUCLEO_F429ZI"],
|
||||
"toolchains" : ["GCC_ARM", "ARM"],
|
||||
|
@ -37,6 +39,7 @@
|
|||
"mbed": [
|
||||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-mesh-minimal"
|
||||
],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : ["DISCO_F469NI", "DISCO_F746NG", "K64F", "K66F",
|
||||
"NUCLEO_F429ZI", "NUCLEO_F439ZI", "NUCLEO_F746ZG",
|
||||
|
@ -63,6 +66,7 @@
|
|||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-ble-Button",
|
||||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-ble-BatteryLevel"
|
||||
],
|
||||
"test-repo-source": "mbed",
|
||||
"features" : ["BLE"],
|
||||
"targets" : ["NRF51_DK", "NRF52_DK", "K64F", "NUCLEO_F401RE"],
|
||||
"toolchains" : [],
|
||||
|
@ -77,6 +81,7 @@
|
|||
"mbed": [
|
||||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-client"
|
||||
],
|
||||
"test-repo-source": "github",
|
||||
"features" : ["LWIP"],
|
||||
"targets" : [],
|
||||
"toolchains" : [],
|
||||
|
@ -90,6 +95,7 @@
|
|||
"github":"https://github.com/ARMmbed/mbed-os-example-sockets",
|
||||
"mbed": [
|
||||
],
|
||||
"test-repo-source": "github",
|
||||
"features" : ["LWIP"],
|
||||
"targets" : [],
|
||||
"toolchains" : [],
|
||||
|
@ -103,6 +109,7 @@
|
|||
"github":"https://github.com/ARMmbed/mbed-os-example-wifi",
|
||||
"mbed": [
|
||||
],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : [],
|
||||
"toolchains" : [],
|
||||
|
@ -115,6 +122,7 @@
|
|||
"name": "mbed-os-example-uvisor",
|
||||
"github":"https://github.com/ARMmbed/mbed-os-example-uvisor",
|
||||
"mbed": [],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : ["K64F"],
|
||||
"toolchains" : ["GCC_ARM"],
|
||||
|
@ -127,6 +135,7 @@
|
|||
"name": "mbed-os-example-uvisor-thread",
|
||||
"github":"https://github.com/ARMmbed/mbed-os-example-uvisor-thread",
|
||||
"mbed": [],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : ["K64F"],
|
||||
"toolchains" : ["GCC_ARM"],
|
||||
|
@ -139,6 +148,7 @@
|
|||
"name": "mbed-os-example-uvisor-number-store",
|
||||
"github":"https://github.com/ARMmbed/mbed-os-example-uvisor-number-store",
|
||||
"mbed": [],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : ["K64F"],
|
||||
"toolchains" : ["GCC_ARM"],
|
||||
|
@ -153,6 +163,7 @@
|
|||
"mbed": [
|
||||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-bootloader"
|
||||
],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : ["K64F", "NUCLEO_F429ZI", "UBLOX_EVK_ODIN_W2"],
|
||||
"toolchains" : [],
|
||||
|
@ -167,6 +178,7 @@
|
|||
"mbed": [
|
||||
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-fat-filesystem"
|
||||
],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : ["K64F"],
|
||||
"toolchains" : [],
|
||||
|
@ -179,6 +191,7 @@
|
|||
"name": "nanostack-border-router",
|
||||
"github":"https://github.com/ARMmbed/nanostack-border-router",
|
||||
"mbed": [],
|
||||
"test-repo-source": "github",
|
||||
"features" : [],
|
||||
"targets" : ["K64F", "K66F", "NUCLEO_F429ZI"],
|
||||
"toolchains" : [],
|
||||
|
|
|
@ -123,20 +123,19 @@ def target_cross_ide(allowed_targets, allowed_ides, features=[], toolchains=[]):
|
|||
|
||||
|
||||
def get_repo_list(example):
|
||||
""" Returns a list of all the repos associated with the specific example in the json
|
||||
config file.
|
||||
If there are repos listed under the mbed section then these will be returned as a
|
||||
list. If not then the github single repo with be returned.
|
||||
""" Returns a list of all the repos and their types associated with the
|
||||
specific example in the json config file.
|
||||
If the key 'test-repo-source' is set to 'mbed', then it will return the
|
||||
mbed section as a list. Otherwise, it will return the single github repo.
|
||||
NOTE: This does not currently deal with multiple examples underneath a github
|
||||
sourced exampe repo.
|
||||
|
||||
Args:
|
||||
example - Example for which the repo list is requested
|
||||
repos - The list of repos and types contained within that example in the json file
|
||||
|
||||
"""
|
||||
repos = []
|
||||
if len(example['mbed']) > 0:
|
||||
if example['test-repo-source'] == 'mbed':
|
||||
for repo in example['mbed']:
|
||||
repos.append({
|
||||
'repo': repo,
|
||||
|
@ -397,4 +396,3 @@ def update_mbedos_version(config, tag, examples):
|
|||
os.chdir(update_dir)
|
||||
subprocess.call(["mbed-cli", "update", tag, "--clean"])
|
||||
os.chdir("../..")
|
||||
|
||||
|
|
Loading…
Reference in New Issue