Backup 1

Committer:
borlanic
Date:
Tue Apr 24 11:45:18 2018 +0000
Revision:
0:02dd72d1d465
BaBoRo_test2 - backup 1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
borlanic 0:02dd72d1d465 1
borlanic 0:02dd72d1d465 2 // List of targets to compile
borlanic 0:02dd72d1d465 3 def targets = [
borlanic 0:02dd72d1d465 4 //"LPC1768",
borlanic 0:02dd72d1d465 5 //"NUCLEO_F401RE",
borlanic 0:02dd72d1d465 6 //"NRF51822",
borlanic 0:02dd72d1d465 7 "K64F"
borlanic 0:02dd72d1d465 8 ]
borlanic 0:02dd72d1d465 9
borlanic 0:02dd72d1d465 10 // Map toolchains to compiler labels on Jenkins
borlanic 0:02dd72d1d465 11 def toolchains = [
borlanic 0:02dd72d1d465 12 ARM: "armcc",
borlanic 0:02dd72d1d465 13 //IAR: "iar_arm",
borlanic 0:02dd72d1d465 14 GCC_ARM: "arm-none-eabi-gcc"
borlanic 0:02dd72d1d465 15 ]
borlanic 0:02dd72d1d465 16
borlanic 0:02dd72d1d465 17 // mbed.getCurrentBranch returns either local branch name or reference to pull request
borlanic 0:02dd72d1d465 18 def currentBranch = mbed.getCurrentBranch()
borlanic 0:02dd72d1d465 19
borlanic 0:02dd72d1d465 20 // Create a map of predefined build steps
borlanic 0:02dd72d1d465 21 def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
borlanic 0:02dd72d1d465 22
borlanic 0:02dd72d1d465 23 // Run build steps parallel, map as paramater
borlanic 0:02dd72d1d465 24 mbed.compile(parallelSteps)
borlanic 0:02dd72d1d465 25
borlanic 0:02dd72d1d465 26 def testApps = [
borlanic 0:02dd72d1d465 27 "mbed-os-cliapp"
borlanic 0:02dd72d1d465 28 ]
borlanic 0:02dd72d1d465 29
borlanic 0:02dd72d1d465 30 // buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters
borlanic 0:02dd72d1d465 31 mbed.buildTestApps(testApps, "${currentBranch}")