@@ -109,7 +109,7 @@ matrix:
109109 - &cmake-build-test
110110 stage : " CMake"
111111 name : " CMake blinky example"
112- env : NAME=cmake_test
112+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=K64F
113113 language : python
114114 python : 3.8
115115 install :
@@ -121,20 +121,52 @@ matrix:
121121 # We use manual clone, with depth and single branch = the fastest
122122 # Because of this, we need to create .mbed file as the current tools require it
123123 - >-
124- git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/mbed-os-example-blinky .git;
125- cd mbed-os-example-blinky ;
124+ git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/${EXAMPLE_NAME} .git;
125+ cd ${EXAMPLE_NAME} ;
126126 git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
127127 cd mbed-os;
128128 git fetch origin +refs/pull/${TRAVIS_PULL_REQUEST}/merge;
129129 git checkout -qf FETCH_HEAD
130130 - >-
131131 cd -;
132132 touch .mbed;
133- mbedtools configure -t GCC_ARM -m K64F ;
133+ mbedtools configure -t GCC_ARM -m ${TARGET_NAME} ;
134134 mkdir -p build
135135 script :
136136 - cd build && cmake .. -GNinja -DMBED_PROFILE=develop && cmake --build .
137137
138+ - << : *cmake-build-test
139+ name : " CMake kvstore example"
140+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-kvstore TARGET_NAME=K64F
141+
142+ - << : *cmake-build-test
143+ name : " CMake ble example"
144+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-ble TARGET_NAME=NRF52840_DK
145+
146+ - << : *cmake-build-test
147+ name : " CMake cellular example"
148+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-cellular TARGET_NAME=WIO_3G
149+
150+ - << : *cmake-build-test
151+ name : " CMake devicekey example"
152+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-devicekey TARGET_NAME=K66F
153+
154+ - << : *cmake-build-test
155+ name : " CMake lorawan example"
156+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-lorawan TARGET_NAME=K66F
157+
158+ - << : *cmake-build-test
159+ name : " CMake crypto example"
160+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-mbed-crypto TARGET_NAME=K64F
161+
162+ - << : *cmake-build-test
163+ name : " CMake nfc example"
164+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-nfc TARGET_NAME=DISCO_L475VG_IOT01A
165+
166+ - << : *cmake-build-test
167+ name : " CMake sockets example"
168+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-sockets TARGET_NAME=K64F
169+
138170 # ## Docs Tests ###
139171 - &docs-vm
140172 stage : " Docs"
0 commit comments