Skip to content

Commit f58afd2

Browse files
committed
travis: Get CMake from kitware repo
This ensures that the latest version release is downloaded.
1 parent 54a3073 commit f58afd2

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.travis.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ language: sh
1818
os: linux
1919
dist: xenial
2020

21+
env:
22+
global:
23+
- PROFILE=develop
24+
2125
cache:
2226
pip: true
2327
ccache: true
@@ -28,8 +32,13 @@ cache:
2832

2933
addons:
3034
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'
3139
packages:
32-
- ninja-build
40+
- cmake
41+
- ninja-build
3342

3443
matrix:
3544
include:
@@ -56,13 +65,21 @@ matrix:
5665
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2020-q2-update/bin"
5766
- popd
5867
- 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*
6076
- pip install --upgrade mbed-tools
6177
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
6278
- >-
6379
git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
6480
- >-
6581
script:
82+
- echo mbedtools build -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
6683
- mbedtools build -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
6784
- ccache -s
6885

0 commit comments

Comments
 (0)