Skip to content

Commit b9d9b01

Browse files
committed
travis: fix travis build by using mbedtools
We need config generation as part of the export, thus need to use tools from now on. Blinky was already updated.
1 parent 236e576 commit b9d9b01

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,25 @@ matrix:
108108
stage: "CMake"
109109
name: "CMake blinky example"
110110
env: NAME=cmake_test
111+
language: python
112+
python: 3.8
111113
install:
112114
# Install gcc
113115
- source_pkg gcc
114116
- arm-none-eabi-gcc --version
115-
- pip install --user --upgrade cmake
117+
- pip install --upgrade cmake
118+
- pip install --upgrade mbed-tools
119+
# We use manual clone, with depth and single branch = the fastest
120+
# Because of this, we need to create .mbed file as the current tools require it
116121
- >-
117122
git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/mbed-os-example-blinky.git;
118123
cd mbed-os-example-blinky;
119124
git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/mbed-os.git;
125+
touch .mbed;
126+
mbedtools configure -t GCC_ARM -m K64F;
120127
mkdir -p build;
121128
script:
122-
- cd build && cmake .. -GNinja && ninja
129+
- cd build && cmake .. -GNinja -DMBED_PROFILE=develop && cmake --build .
123130

124131
### Docs Tests ###
125132
- &docs-vm

0 commit comments

Comments
 (0)