@@ -18,6 +18,10 @@ language: sh
18
18
os : linux
19
19
dist : xenial
20
20
21
+ env :
22
+ global :
23
+ - PROFILE=develop
24
+
21
25
cache :
22
26
pip : true
23
27
ccache : true
@@ -28,8 +32,13 @@ cache:
28
32
29
33
addons :
30
34
apt :
35
+ sources :
36
+ - sourceline : ' deb https://apt.kitware.com/ubuntu/ xenial main'
37
+ key_url : ' https://apt.kitware.com/keys/kitware-archive-latest.asc'
38
+ - sourceline : ' deb https://apt.kitware.com/ubuntu/ xenial-rc main'
31
39
packages :
32
- - ninja-build
40
+ - cmake
41
+ - ninja-build
33
42
34
43
matrix :
35
44
include :
@@ -56,13 +65,21 @@ matrix:
56
65
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2020-q2-update/bin"
57
66
- popd
58
67
- arm-none-eabi-gcc --version
59
- - pip install --upgrade cmake
68
+ # Hide Travis-preinstalled CMake
69
+ # The Travis-preinstalled CMake is unfortunately not installed via apt, so we
70
+ # can't replace it with an apt-supplied version very easily. Additionally, we
71
+ # can't permit the Travis-preinstalled copy to survive, as the Travis default
72
+ # path lists the Travis CMake install location ahead of any place where apt
73
+ # would install CMake to. Instead of apt removing or upgrading to a new CMake
74
+ # version, we must instead delete the Travis copy of CMake.
75
+ - sudo rm -rf /usr/local/cmake*
60
76
- pip install --upgrade mbed-tools
61
77
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
62
78
- >-
63
79
git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
64
80
- >-
65
81
script :
82
+ - echo mbedtools build -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
66
83
- mbedtools build -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
67
84
- ccache -s
68
85
0 commit comments