2016-09-13 06:39:19 +00:00
|
|
|
|
2016-08-08 06:49:57 +00:00
|
|
|
// List of targets to compile
|
2016-08-09 13:49:49 +00:00
|
|
|
def targets = [
|
2016-08-08 06:49:57 +00:00
|
|
|
//"LPC1768",
|
|
|
|
//"NUCLEO_F401RE",
|
|
|
|
//"NRF51822",
|
|
|
|
"K64F"
|
|
|
|
]
|
|
|
|
|
2016-08-09 13:49:49 +00:00
|
|
|
// Map toolchains to compiler labels on Jenkins
|
2016-08-08 06:49:57 +00:00
|
|
|
def toolchains = [
|
2016-09-13 06:39:19 +00:00
|
|
|
ARM: "armcc",
|
2016-08-08 06:49:57 +00:00
|
|
|
//IAR: "iar_arm",
|
|
|
|
GCC_ARM: "arm-none-eabi-gcc"
|
|
|
|
]
|
|
|
|
|
2016-09-20 13:05:59 +00:00
|
|
|
// mbed.getCurrentBranch returns either local branch name or reference to pull request
|
|
|
|
def currentBranch = mbed.getCurrentBranch()
|
|
|
|
|
2016-08-25 13:13:58 +00:00
|
|
|
// Create a map of predefined build steps
|
|
|
|
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
|
2016-08-08 06:49:57 +00:00
|
|
|
|
2016-08-25 13:13:58 +00:00
|
|
|
// Run build steps parallel, map as paramater
|
2016-08-25 13:49:51 +00:00
|
|
|
mbed.compile(parallelSteps)
|
2016-08-08 06:49:57 +00:00
|
|
|
|
2016-09-13 06:39:19 +00:00
|
|
|
def testApps = [
|
|
|
|
"mbed-os-cliapp",
|
|
|
|
"mbed-client-testapp"
|
|
|
|
]
|
|
|
|
|
2016-09-20 13:05:59 +00:00
|
|
|
// buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters
|
|
|
|
mbed.buildTestApps(testApps, "${currentBranch}")
|