@@ -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
@@ -42,7 +45,7 @@ matrix:
42
45
43
46
- &compile-tests
44
47
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 "
46
49
env : TARGET_NAME=ARM_MUSCA_S1 CACHE_NAME=ARM_MUSCA_S1
47
50
language : python
48
51
python : 3.8
@@ -54,6 +57,14 @@ matrix:
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,15 +75,33 @@ 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 --branch=feature-tf-m-1.2-integration 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-cli mbed-tools
68
79
- pip install -r mbed-os/requirements.txt
69
80
script :
81
+ # Mbed CLI 2 build output conflicts with Mbed CLI 1
82
+ - rm -rf cmake_build
70
83
# Build TF-M and all tests
71
84
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} -b
72
85
- ccache -s
73
86
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
+
74
95
# ARM_MUSCA_B1
75
96
76
97
- << : *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 "
78
99
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