File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ after_success:
40
40
after_failure :
41
41
- set_status "failure" "Test failed."
42
42
43
+ addons :
44
+ apt :
45
+ packages :
46
+ - ninja-build
43
47
44
48
matrix :
45
49
include :
@@ -102,6 +106,34 @@ matrix:
102
106
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
103
107
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*'
104
108
109
+ - &cmake-build-test
110
+ stage : " CMake"
111
+ name : " CMake blinky example"
112
+ env : NAME=cmake_test
113
+ language : python
114
+ python : 3.8
115
+ install :
116
+ # Install gcc
117
+ - source_pkg gcc
118
+ - arm-none-eabi-gcc --version
119
+ - pip install --upgrade cmake
120
+ - pip install --upgrade mbed-tools
121
+ # We use manual clone, with depth and single branch = the fastest
122
+ # Because of this, we need to create .mbed file as the current tools require it
123
+ - >-
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;
126
+ git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
127
+ cd mbed-os;
128
+ git fetch origin +refs/pull/${TRAVIS_PULL_REQUEST}/merge;
129
+ git checkout -qf FETCH_HEAD
130
+ - >-
131
+ cd -;
132
+ touch .mbed;
133
+ mbedtools configure -t GCC_ARM -m K64F;
134
+ mkdir -p build
135
+ script :
136
+ - cd build && cmake .. -GNinja -DMBED_PROFILE=develop && cmake --build .
105
137
106
138
# ## Docs Tests ###
107
139
- &docs-vm
You can’t perform that action at this time.
0 commit comments