@@ -122,18 +122,25 @@ matrix:
122
122
- pip install --upgrade mbed-tools
123
123
# We use manual clone, with depth and single branch = the fastest
124
124
# Because of this, we need to create .mbed file as the current tools require it
125
+ - git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/${EXAMPLE_NAME}.git;
125
126
- >-
126
- git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/${EXAMPLE_NAME}.git;
127
- cd ${EXAMPLE_NAME};
128
- git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
129
- cd mbed-os;
130
- git fetch origin +refs/pull/${TRAVIS_PULL_REQUEST}/merge;
131
- git checkout -qf FETCH_HEAD
127
+ if [ -z ${SUBEXAMPLE_NAME} ]; then
128
+ cd ${EXAMPLE_NAME};
129
+ else
130
+ cd ${EXAMPLE_NAME}/${SUBEXAMPLE_NAME};
131
+ fi
132
+ - >-
133
+ git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
134
+ cd mbed-os;
135
+ git fetch origin +refs/pull/${TRAVIS_PULL_REQUEST}/merge;
136
+ git checkout -qf FETCH_HEAD
132
137
- >-
133
138
cd -;
134
- touch .mbed;
135
- mbedtools configure -t GCC_ARM -m ${TARGET_NAME};
136
- mkdir -p build
139
+ # Replace the content of mbed-os.lib to stay on ${TRAVIS_PULL_REQUEST}
140
+ - echo “” > mbed-os.lib
141
+ - mbedtools checkout;
142
+ - mbedtools configure -t GCC_ARM -m ${TARGET_NAME};
143
+ - mkdir -p build
137
144
script :
138
145
- cd build && cmake .. -GNinja -DCMAKE_BUILD_TYPE=${PROFILE} && cmake --build .
139
146
@@ -169,6 +176,39 @@ matrix:
169
176
name : " CMake blinky example - debug (NRF52840_DK)"
170
177
env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=NRF52840_DK PROFILE=debug
171
178
179
+ - << : *cmake-build-test
180
+ name : " CMake kvstore example (K64F)"
181
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-kvstore TARGET_NAME=K64F
182
+
183
+ - << : *cmake-build-test
184
+ name : " CMake ble example (NRF52840_DK)"
185
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-ble TARGET_NAME=NRF52840_DK SUBEXAMPLE_NAME=BLE_Button
186
+
187
+ - << : *cmake-build-test
188
+ name : " CMake cellular example (WIO_3G)"
189
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-cellular TARGET_NAME=WIO_3G
190
+
191
+ - << : *cmake-build-test
192
+ name : " CMake devicekey example (K66F)"
193
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-devicekey TARGET_NAME=K66F
194
+
195
+ - << : *cmake-build-test
196
+ name : " CMake lorawan example (K66F)"
197
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-lorawan TARGET_NAME=K66F
198
+
199
+ - << : *cmake-build-test
200
+ name : " CMake crypto example (K64F)"
201
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-mbed-crypto TARGET_NAME=K64F SUBEXAMPLE_NAME=getting-started
202
+
203
+ - << : *cmake-build-test
204
+ name : " CMake nfc example (DISCO_L475VG_IOT01A)"
205
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-nfc TARGET_NAME=DISCO_L475VG_IOT01A SUBEXAMPLE_NAME=NFC_EEPROM
206
+
207
+ - << : *cmake-build-test
208
+ name : " CMake sockets example (K64F)"
209
+ env : NAME=cmake_test EXAMPLE_NAME=mbed-os-example-sockets TARGET_NAME=K64F
210
+
211
+
172
212
173
213
# ## Docs Tests ###
174
214
- &docs-vm
0 commit comments