Skip to content

Commit b933cfc

Browse files
0xc0170hugueskamba
andcommitted
Travis: add more examples we should support
Co-authored-by: Hugues Kamba <[email protected]>
1 parent 129e697 commit b933cfc

File tree

1 file changed

+44
-6
lines changed

1 file changed

+44
-6
lines changed

.travis.yml

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,18 @@ matrix:
121121
- pip install --upgrade mbed-tools
122122
# We use manual clone, with depth and single branch = the fastest
123123
# Because of this, we need to create .mbed file as the current tools require it
124+
- git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/${EXAMPLE_NAME}.git;
124125
- >-
125-
git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/${EXAMPLE_NAME}.git;
126-
cd ${EXAMPLE_NAME};
127-
git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
128-
cd mbed-os;
129-
git fetch origin +refs/pull/${TRAVIS_PULL_REQUEST}/merge;
130-
git checkout -qf FETCH_HEAD
126+
if [ -z ${SUBEXAMPLE_NAME} ]; then
127+
cd ${EXAMPLE_NAME};
128+
else
129+
cd ${EXAMPLE_NAME}/${SUBEXAMPLE_NAME};
130+
fi
131+
- >-
132+
git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
133+
cd mbed-os;
134+
git fetch origin +refs/pull/${TRAVIS_PULL_REQUEST}/merge;
135+
git checkout -qf FETCH_HEAD
131136
- >-
132137
cd -;
133138
touch .mbed;
@@ -168,6 +173,39 @@ matrix:
168173
name: "CMake blinky example - debug (NRF52840_DK)"
169174
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=NRF52840_DK PROFILE=debug
170175

176+
- <<: *cmake-build-test
177+
name: "CMake kvstore example (K64F)"
178+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-kvstore TARGET_NAME=K64F
179+
180+
- <<: *cmake-build-test
181+
name: "CMake ble example (NRF52840_DK)"
182+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-ble TARGET_NAME=NRF52840_DK SUBEXAMPLE_NAME=BLE_Button
183+
184+
- <<: *cmake-build-test
185+
name: "CMake cellular example (WIO_3G)"
186+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-cellular TARGET_NAME=WIO_3G
187+
188+
- <<: *cmake-build-test
189+
name: "CMake devicekey example (K66F)"
190+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-devicekey TARGET_NAME=K66F
191+
192+
- <<: *cmake-build-test
193+
name: "CMake lorawan example (K66F)"
194+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-lorawan TARGET_NAME=K66F
195+
196+
- <<: *cmake-build-test
197+
name: "CMake crypto example (K64F)"
198+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-mbed-crypto TARGET_NAME=K64F SUBEXAMPLE_NAME=getting-started
199+
200+
- <<: *cmake-build-test
201+
name: "CMake nfc example (DISCO_L475VG_IOT01A)"
202+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-nfc TARGET_NAME=DISCO_L475VG_IOT01A SUBEXAMPLE_NAME=NFC_EEPROM
203+
204+
- <<: *cmake-build-test
205+
name: "CMake sockets example (K64F)"
206+
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-sockets TARGET_NAME=K64F
207+
208+
171209

172210
### Docs Tests ###
173211
- &docs-vm

0 commit comments

Comments
 (0)