mbed os with nrf51 internal bandgap enabled to read battery level
Dependents: BLE_file_test BLE_Blink ExternalEncoder
Jenkinsfile@0:f269e3021894, 2016-10-23 (annotated)
- Committer:
- elessair
- Date:
- Sun Oct 23 15:10:02 2016 +0000
- Revision:
- 0:f269e3021894
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | |
elessair | 0:f269e3021894 | 2 | // List of targets to compile |
elessair | 0:f269e3021894 | 3 | def targets = [ |
elessair | 0:f269e3021894 | 4 | //"LPC1768", |
elessair | 0:f269e3021894 | 5 | //"NUCLEO_F401RE", |
elessair | 0:f269e3021894 | 6 | //"NRF51822", |
elessair | 0:f269e3021894 | 7 | "K64F" |
elessair | 0:f269e3021894 | 8 | ] |
elessair | 0:f269e3021894 | 9 | |
elessair | 0:f269e3021894 | 10 | // Map toolchains to compiler labels on Jenkins |
elessair | 0:f269e3021894 | 11 | def toolchains = [ |
elessair | 0:f269e3021894 | 12 | ARM: "armcc", |
elessair | 0:f269e3021894 | 13 | //IAR: "iar_arm", |
elessair | 0:f269e3021894 | 14 | GCC_ARM: "arm-none-eabi-gcc" |
elessair | 0:f269e3021894 | 15 | ] |
elessair | 0:f269e3021894 | 16 | |
elessair | 0:f269e3021894 | 17 | // mbed.getCurrentBranch returns either local branch name or reference to pull request |
elessair | 0:f269e3021894 | 18 | def currentBranch = mbed.getCurrentBranch() |
elessair | 0:f269e3021894 | 19 | |
elessair | 0:f269e3021894 | 20 | // Create a map of predefined build steps |
elessair | 0:f269e3021894 | 21 | def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains) |
elessair | 0:f269e3021894 | 22 | |
elessair | 0:f269e3021894 | 23 | // Run build steps parallel, map as paramater |
elessair | 0:f269e3021894 | 24 | mbed.compile(parallelSteps) |
elessair | 0:f269e3021894 | 25 | |
elessair | 0:f269e3021894 | 26 | def testApps = [ |
elessair | 0:f269e3021894 | 27 | "mbed-os-cliapp", |
elessair | 0:f269e3021894 | 28 | "mbed-client-testapp" |
elessair | 0:f269e3021894 | 29 | ] |
elessair | 0:f269e3021894 | 30 | |
elessair | 0:f269e3021894 | 31 | // buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters |
elessair | 0:f269e3021894 | 32 | mbed.buildTestApps(testApps, "${currentBranch}") |