init

Dependencies:   mbed

Committer:
Nathan Yonkee
Date:
Fri Mar 02 07:12:37 2018 -0700
Revision:
9:d58e77ebd769
add mbed-os library

Who changed what in which revision?

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