Skip to content

Commit f194016

Browse files
committed
Test cmake
1 parent 2acbce8 commit f194016

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ dist: focal
2020

2121
addons:
2222
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'
2326
packages:
2427
- cmake
2528
- srecord
@@ -46,11 +49,19 @@ matrix:
4649
language: python
4750
python: 3.8
4851
install:
52+
# Hide Travis-preinstalled CMake
53+
# The Travis-preinstalled CMake is unfortunately not installed via apt, so we
54+
# can't replace it with an apt-supplied version very easily. Additionally, we
55+
# can't permit the Travis-preinstalled copy to survive, as the Travis default
56+
# path lists the Travis CMake install location ahead of any place where apt
57+
# would install CMake to. Instead of apt removing or upgrading to a new CMake
58+
# version, we must instead delete the Travis copy of CMake.
59+
- sudo rm -rf /usr/local/cmake*
4960
# Install arm-none-eabi-gcc
5061
- pushd /home/travis/build && mkdir arm-gcc && cd arm-gcc
5162
- 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
5263
- tar xf gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
53-
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2019-q4-major/bin"
64+
- export PATH="$(pwd)/gcc-arm-none-eabi-9-2019-q4-major/bin:$PATH"
5465
- popd
5566
# Setup ccache
5667
- ccache -o compiler_check=content
@@ -68,6 +79,8 @@ matrix:
6879
- pip install -r mbed-os/requirements.txt
6980
script:
7081
# Build TF-M and all tests
82+
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --build || true
83+
- sed -i '136imessage("GCC=${GNUARM_PATH}/bin/${_GCC_BINARY_NAME}")' mbed-os/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_V1_1/TARGET_IGNORE/trusted-firmware-m/cmake/Common/FindGNUARM.cmake
7184
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --build
7285
- ccache -s
7386

0 commit comments

Comments
 (0)