mbed-os
Dependents: cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more
Jenkinsfile@0:b74591d5ab33, 2017-12-11 (annotated)
- Committer:
- be_bryan
- Date:
- Mon Dec 11 17:54:04 2017 +0000
- Revision:
- 0:b74591d5ab33
motor ++
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
be_bryan | 0:b74591d5ab33 | 1 | |
be_bryan | 0:b74591d5ab33 | 2 | // List of targets to compile |
be_bryan | 0:b74591d5ab33 | 3 | def targets = [ |
be_bryan | 0:b74591d5ab33 | 4 | //"LPC1768", |
be_bryan | 0:b74591d5ab33 | 5 | //"NUCLEO_F401RE", |
be_bryan | 0:b74591d5ab33 | 6 | //"NRF51822", |
be_bryan | 0:b74591d5ab33 | 7 | "K64F" |
be_bryan | 0:b74591d5ab33 | 8 | ] |
be_bryan | 0:b74591d5ab33 | 9 | |
be_bryan | 0:b74591d5ab33 | 10 | // Map toolchains to compiler labels on Jenkins |
be_bryan | 0:b74591d5ab33 | 11 | def toolchains = [ |
be_bryan | 0:b74591d5ab33 | 12 | ARM: "armcc", |
be_bryan | 0:b74591d5ab33 | 13 | //IAR: "iar_arm", |
be_bryan | 0:b74591d5ab33 | 14 | GCC_ARM: "arm-none-eabi-gcc" |
be_bryan | 0:b74591d5ab33 | 15 | ] |
be_bryan | 0:b74591d5ab33 | 16 | |
be_bryan | 0:b74591d5ab33 | 17 | // mbed.getCurrentBranch returns either local branch name or reference to pull request |
be_bryan | 0:b74591d5ab33 | 18 | def currentBranch = mbed.getCurrentBranch() |
be_bryan | 0:b74591d5ab33 | 19 | |
be_bryan | 0:b74591d5ab33 | 20 | // Create a map of predefined build steps |
be_bryan | 0:b74591d5ab33 | 21 | def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains) |
be_bryan | 0:b74591d5ab33 | 22 | |
be_bryan | 0:b74591d5ab33 | 23 | // Run build steps parallel, map as paramater |
be_bryan | 0:b74591d5ab33 | 24 | mbed.compile(parallelSteps) |
be_bryan | 0:b74591d5ab33 | 25 | |
be_bryan | 0:b74591d5ab33 | 26 | def testApps = [ |
be_bryan | 0:b74591d5ab33 | 27 | "mbed-os-cliapp" |
be_bryan | 0:b74591d5ab33 | 28 | ] |
be_bryan | 0:b74591d5ab33 | 29 | |
be_bryan | 0:b74591d5ab33 | 30 | // buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters |
be_bryan | 0:b74591d5ab33 | 31 | mbed.buildTestApps(testApps, "${currentBranch}") |