mirror of https://github.com/ARMmbed/mbed-os.git
Update Jenkinsfile
* Enabled ARM toolchain * Cleaned unncessary stages * Stages are defined inside compile and buildTestApps functions * Added building of mbed-os-cliapp and mbed-client-testapp * These will build and test the mbed-os changes with all mbed-os-cliapp and mbed-client-testapp configurations, see Jenkinsfiles in https://github.com/ARMmbed/mbed-os-cliapp and https://github.com/ARMmbed/mbed-client-testapp for specificationspull/2680/head
parent
dd5649d92b
commit
9061a099fb
|
@ -1,3 +1,4 @@
|
|||
|
||||
// List of targets to compile
|
||||
def targets = [
|
||||
//"LPC1768",
|
||||
|
@ -8,19 +9,21 @@ def targets = [
|
|||
|
||||
// Map toolchains to compiler labels on Jenkins
|
||||
def toolchains = [
|
||||
//ARM: "armcc",
|
||||
ARM: "armcc",
|
||||
//IAR: "iar_arm",
|
||||
GCC_ARM: "arm-none-eabi-gcc"
|
||||
]
|
||||
|
||||
// Create a map of predefined build steps
|
||||
stage "generate build steps for parallel execution"
|
||||
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
|
||||
|
||||
// Run build steps parallel, map as paramater
|
||||
stage "build all targets"
|
||||
mbed.compile(parallelSteps)
|
||||
|
||||
// Run testapps, mbed-os commit hash or master as parameter
|
||||
stage "run mbed-os testapps"
|
||||
mbed.runTestApps("${env.GIT_REVISION}")
|
||||
def testApps = [
|
||||
"mbed-os-cliapp",
|
||||
"mbed-client-testapp"
|
||||
]
|
||||
|
||||
// buildTestApps accepts array of test application names and a mbed-os commit hash as parameters
|
||||
mbed.buildTestApps(testApps, "${env.GIT_REVISION}")
|
||||
|
|
Loading…
Reference in New Issue