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 = [
|
|
|
|
//ARM: "armcc",
|
|
|
|
//IAR: "iar_arm",
|
|
|
|
GCC_ARM: "arm-none-eabi-gcc"
|
|
|
|
]
|
|
|
|
|
2016-08-25 13:13:58 +00:00
|
|
|
// Create a map of predefined build steps
|
|
|
|
stage "generate build steps for parallel execution"
|
|
|
|
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
|
|
|
|
stage "build all targets"
|
2016-08-25 13:49:51 +00:00
|
|
|
mbed.compile(parallelSteps)
|
2016-08-08 06:49:57 +00:00
|
|
|
|
2016-08-25 13:13:58 +00:00
|
|
|
// Run testapps, mbed-os commit hash or master as parameter
|
|
|
|
stage "run mbed-os testapps"
|
|
|
|
mbed.runTestApps("${env.GIT_REVISION}")
|