Daniel Vizcaya
/
04_RTOS_Embebidos
Entrega 3er corte - sistemas embebidos
mbed-os/Jenkinsfile@0:6ad07c9019fd, 2018-05-30 (annotated)
- Committer:
- Bethory
- Date:
- Wed May 30 00:01:50 2018 +0000
- Revision:
- 0:6ad07c9019fd
Codigo de tales para todos los pasculaes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bethory | 0:6ad07c9019fd | 1 | |
Bethory | 0:6ad07c9019fd | 2 | // List of targets to compile |
Bethory | 0:6ad07c9019fd | 3 | def targets = [ |
Bethory | 0:6ad07c9019fd | 4 | //"LPC1768", |
Bethory | 0:6ad07c9019fd | 5 | //"NUCLEO_F401RE", |
Bethory | 0:6ad07c9019fd | 6 | //"NRF51822", |
Bethory | 0:6ad07c9019fd | 7 | "K64F" |
Bethory | 0:6ad07c9019fd | 8 | ] |
Bethory | 0:6ad07c9019fd | 9 | |
Bethory | 0:6ad07c9019fd | 10 | // Map toolchains to compiler labels on Jenkins |
Bethory | 0:6ad07c9019fd | 11 | def toolchains = [ |
Bethory | 0:6ad07c9019fd | 12 | ARM: "armcc", |
Bethory | 0:6ad07c9019fd | 13 | //IAR: "iar_arm", |
Bethory | 0:6ad07c9019fd | 14 | GCC_ARM: "arm-none-eabi-gcc" |
Bethory | 0:6ad07c9019fd | 15 | ] |
Bethory | 0:6ad07c9019fd | 16 | |
Bethory | 0:6ad07c9019fd | 17 | // mbed.getCurrentBranch returns either local branch name or reference to pull request |
Bethory | 0:6ad07c9019fd | 18 | def currentBranch = mbed.getCurrentBranch() |
Bethory | 0:6ad07c9019fd | 19 | |
Bethory | 0:6ad07c9019fd | 20 | // Create a map of predefined build steps |
Bethory | 0:6ad07c9019fd | 21 | def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains) |
Bethory | 0:6ad07c9019fd | 22 | |
Bethory | 0:6ad07c9019fd | 23 | // Run build steps parallel, map as paramater |
Bethory | 0:6ad07c9019fd | 24 | mbed.compile(parallelSteps) |
Bethory | 0:6ad07c9019fd | 25 | |
Bethory | 0:6ad07c9019fd | 26 | def testApps = [ |
Bethory | 0:6ad07c9019fd | 27 | "mbed-os-cliapp" |
Bethory | 0:6ad07c9019fd | 28 | ] |
Bethory | 0:6ad07c9019fd | 29 | |
Bethory | 0:6ad07c9019fd | 30 | // buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters |
Bethory | 0:6ad07c9019fd | 31 | mbed.buildTestApps(testApps, "${currentBranch}") |