@@ -20,6 +20,9 @@ dist: focal
20
20
21
21
addons :
22
22
apt :
23
+ sources :
24
+ - sourceline : ' deb https://apt.kitware.com/ubuntu/ focal main'
25
+ key_url : ' https://apt.kitware.com/keys/kitware-archive-latest.asc'
23
26
packages :
24
27
- cmake
25
28
- srecord
@@ -49,11 +52,19 @@ matrix:
49
52
install :
50
53
# Install arm-none-eabi-gcc
51
54
- pushd /home/travis/build && mkdir arm-gcc && cd arm-gcc
52
- - curl -L0 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2?revision=108bd959-44bd-4619-9c19-26187abf5225&la=en&hash=E788CE92E5DFD64B2A8C246BBA91A249CB8E2D2D " --output gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
55
+ - curl -L0 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2" --output gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
53
56
- tar xf gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
54
57
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2019-q4-major/bin"
55
58
- arm-none-eabi-gcc --version
56
59
- popd
60
+ # Hide Travis-preinstalled CMake
61
+ # The Travis-preinstalled CMake is unfortunately not installed via apt, so we
62
+ # can't replace it with an apt-supplied version very easily. Additionally, we
63
+ # can't permit the Travis-preinstalled copy to survive, as the Travis default
64
+ # path lists the Travis CMake install location ahead of any place where apt
65
+ # would install CMake to. Instead of apt removing or upgrading to a new CMake
66
+ # version, we must instead delete the Travis copy of CMake.
67
+ - sudo rm -rf /usr/local/cmake*
57
68
# Setup ccache
58
69
- ccache -o compiler_check=content
59
70
- ccache -M 1G
@@ -64,11 +75,11 @@ matrix:
64
75
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
65
76
- git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git
66
77
# Install Mbed CLI and dependencies
67
- - pip install --upgrade mbed-cli
78
+ - pip install --upgrade mbed-tools
68
79
- pip install -r mbed-os/requirements.txt
69
80
script :
70
81
# Build TF-M and all tests
71
- - python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} -b
82
+ - python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --cli=2 - b
72
83
- ccache -s
73
84
74
85
# ARM_MUSCA_B1
0 commit comments