Skip to content

Commit c7e1f10

Browse files
committed
Travis: Add tests for Mbed CLI 2 builds
1 parent 2179cf5 commit c7e1f10

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

.travis.yml

Lines changed: 32 additions & 3 deletions
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
@@ -42,7 +45,7 @@ matrix:
4245

4346
- &compile-tests
4447
stage: "Compile"
45-
name: "Compile Regression and Compliance tests - ARM_MUSCA_S1"
48+
name: "Compile Regression and Compliance tests - ARM_MUSCA_S1, Mbed CLI 1"
4649
env: TARGET_NAME=ARM_MUSCA_S1 CACHE_NAME=ARM_MUSCA_S1
4750
language: python
4851
python: 3.8
@@ -54,6 +57,14 @@ matrix:
5457
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2019-q4-major/bin"
5558
- arm-none-eabi-gcc --version
5659
- 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*
5768
# Setup ccache
5869
- ccache -o compiler_check=content
5970
- ccache -M 1G
@@ -64,15 +75,33 @@ matrix:
6475
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
6576
- git clone --depth=1 --single-branch --branch=feature-tf-m-1.2-integration https://github.com/ARMmbed/mbed-os.git
6677
# Install Mbed CLI and dependencies
67-
- pip install --upgrade mbed-cli
78+
- pip install --upgrade mbed-cli mbed-tools
6879
- pip install -r mbed-os/requirements.txt
6980
script:
81+
# Mbed CLI 2 build output conflicts with Mbed CLI 1
82+
- rm -rf cmake_build
7083
# Build TF-M and all tests
7184
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} -b
7285
- ccache -s
7386

87+
- <<: *compile-tests
88+
name: "Compile Regression and Compliance tests - ARM_MUSCA_S1, Mbed CLI 2"
89+
env: TARGET_NAME=ARM_MUSCA_S1 CACHE_NAME=ARM_MUSCA_S1-CLI2
90+
script:
91+
# Build TF-M and all tests with Mbed CLI 2
92+
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --cli=2 -b
93+
- ccache -s
94+
7495
# ARM_MUSCA_B1
7596

7697
- <<: *compile-tests
77-
name: "Compile Regression and Compliance tests - ARM_MUSCA_B1"
98+
name: "Compile Regression and Compliance tests - ARM_MUSCA_B1, Mbed CLI 1"
7899
env: TARGET_NAME=ARM_MUSCA_B1 CACHE_NAME=ARM_MUSCA_B1
100+
101+
- <<: *compile-tests
102+
name: "Compile Regression and Compliance tests - ARM_MUSCA_B1, Mbed CLI 2"
103+
env: TARGET_NAME=ARM_MUSCA_B1 CACHE_NAME=ARM_MUSCA_B1-CLI2
104+
script:
105+
# Build TF-M and all tests with Mbed CLI 2
106+
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --cli=2 -b
107+
- ccache -s

0 commit comments

Comments
 (0)