Skip to content

Commit 22e3fd2

Browse files
committed
Add Travis CI to build supported targets
Targets covered (based on PSA service availability in Mbed OS targets.json): * ARM_MUSCA_S1 * ARM_MUSCA_B1 * K64F * K66F * NUCLEO_F429ZI * FVP_MPS2_M0 * FVP_MPS2_M0P * FVP_MPS2_M3 * FVP_MPS2_M4 * FVP_MPS2_M7 * GD32_F450ZI Profiles covered: release and debug Note: CYTFM_064B0S2_4343W is excluded until an issue with its Post-Build script is fixed.
1 parent 0dd455c commit 22e3fd2

File tree

1 file changed

+169
-0
lines changed

1 file changed

+169
-0
lines changed

.travis.yml

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# Copyright (c) 2020 Arm Limited. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the License); you may
6+
# not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an AS IS BASIS, WITHOUT
13+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
language: sh
18+
os: linux
19+
dist: focal
20+
21+
cache:
22+
pip: true
23+
ccache: true
24+
directories:
25+
# Cache arm-none-eabi compiler
26+
- ${HOME}/.cache/deps
27+
# It looks like ccache for arm-none-eabi is not yet supported by Travis.
28+
# Therefore manually adding ccache directory to cache
29+
- ${HOME}/.ccache
30+
31+
matrix:
32+
include:
33+
34+
# ARM_MUSCA_S1
35+
36+
- &mbed-psa-compile-test
37+
stage: "Compile"
38+
name: "Compile PSA example - release (ARM_MUSCA_S1)"
39+
env: TARGET_NAME=ARM_MUSCA_S1 PROFILE=release CACHE_NAME=release-ARM_MUSCA_S1
40+
language: python
41+
python: 3.8
42+
install:
43+
# Install arm-none-eabi-gcc
44+
- pushd /home/travis/build && mkdir arm-gcc && cd arm-gcc
45+
- curl -L0 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2?revision=05382cca-1721-44e1-ae19-1e7c3dc96118&la=en&hash=D7C9D18FCA2DD9F894FD9F3C3DC9228498FA281A" --output gcc-arm-none-eabi-9-2020-q2-update.tar.bz2
46+
- tar xf gcc-arm-none-eabi-9-2020-q2-update.tar.bz2
47+
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2020-q2-update/bin"
48+
- popd
49+
- arm-none-eabi-gcc --version
50+
# Setup ccache
51+
- ccache -o compiler_check=content
52+
- pushd /usr/lib/ccache
53+
- sudo ln -s $(which ccache) arm-none-eabi-gcc
54+
- sudo ln -s $(which ccache) arm-none-eabi-g++
55+
- export PATH="/usr/lib/ccache:$PATH"
56+
- popd
57+
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
58+
- git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
59+
# Install Mbed CLI and dependencies
60+
- pip install --upgrade mbed-cli
61+
- pip install -r mbed-os/requirements.txt
62+
script:
63+
- echo mbed compile -t GCC_ARM -m ${TARGET_NAME} --profile ${PROFILE}
64+
- mbed compile -t GCC_ARM -m ${TARGET_NAME} --profile ${PROFILE}
65+
- ccache -s
66+
67+
- <<: *mbed-psa-compile-test
68+
name: "Compile PSA example - debug (ARM_MUSCA_S1)"
69+
env: TARGET_NAME=ARM_MUSCA_S1 PROFILE=debug CACHE_NAME=debug-ARM_MUSCA_S1
70+
71+
# ARM_MUSCA_B1
72+
73+
- <<: *mbed-psa-compile-test
74+
name: "Compile PSA example - release (ARM_MUSCA_B1)"
75+
env: TARGET_NAME=ARM_MUSCA_B1 PROFILE=release CACHE_NAME=release-ARM_MUSCA_B1
76+
77+
- <<: *mbed-psa-compile-test
78+
name: "Compile PSA example - debug (ARM_MUSCA_B1)"
79+
env: TARGET_NAME=ARM_MUSCA_B1 PROFILE=debug CACHE_NAME=debug-ARM_MUSCA_B1
80+
81+
# K64F
82+
83+
- <<: *mbed-psa-compile-test
84+
name: "Compile PSA example - release (K64F)"
85+
env: TARGET_NAME=K64F PROFILE=release CACHE_NAME=release-K64F
86+
87+
- <<: *mbed-psa-compile-test
88+
name: "Compile PSA example - debug (K64F)"
89+
env: TARGET_NAME=K64F PROFILE=debug CACHE_NAME=debug-K64F
90+
91+
# K66F
92+
93+
- <<: *mbed-psa-compile-test
94+
name: "Compile PSA example - release (K66F)"
95+
env: TARGET_NAME=K66F PROFILE=release CACHE_NAME=release-K66F
96+
97+
- <<: *mbed-psa-compile-test
98+
name: "Compile PSA example - debug (K66F)"
99+
env: TARGET_NAME=K66F PROFILE=debug CACHE_NAME=debug-K66F
100+
101+
# NUCLEO_F429ZI
102+
103+
- <<: *mbed-psa-compile-test
104+
name: "Compile PSA example - release (NUCLEO_F429ZI)"
105+
env: TARGET_NAME=NUCLEO_F429ZI PROFILE=release CACHE_NAME=release-NUCLEO_F429ZI
106+
107+
- <<: *mbed-psa-compile-test
108+
name: "Compile PSA example - debug (NUCLEO_F429ZI)"
109+
env: TARGET_NAME=NUCLEO_F429ZI PROFILE=debug CACHE_NAME=debug-NUCLEO_F429ZI
110+
111+
# FVP_MPS2_M0
112+
113+
- <<: *mbed-psa-compile-test
114+
name: "Compile PSA example - release (FVP_MPS2_M0)"
115+
env: TARGET_NAME=FVP_MPS2_M0 PROFILE=release CACHE_NAME=release-FVP_MPS2_M0
116+
117+
- <<: *mbed-psa-compile-test
118+
name: "Compile PSA example - debug (FVP_MPS2_M0)"
119+
env: TARGET_NAME=FVP_MPS2_M0 PROFILE=debug CACHE_NAME=debug-FVP_MPS2_M0
120+
121+
# FVP_MPS2_M0P
122+
123+
- <<: *mbed-psa-compile-test
124+
name: "Compile PSA example - release (FVP_MPS2_M0P)"
125+
env: TARGET_NAME=FVP_MPS2_M0P PROFILE=release CACHE_NAME=release-FVP_MPS2_M0P
126+
127+
- <<: *mbed-psa-compile-test
128+
name: "Compile PSA example - debug (FVP_MPS2_M0P)"
129+
env: TARGET_NAME=FVP_MPS2_M0P PROFILE=debug CACHE_NAME=debug-FVP_MPS2_M0P
130+
131+
# FVP_MPS2_M3
132+
133+
- <<: *mbed-psa-compile-test
134+
name: "Compile PSA example - release (FVP_MPS2_M3)"
135+
env: TARGET_NAME=FVP_MPS2_M3 PROFILE=release CACHE_NAME=release-FVP_MPS2_M3
136+
137+
- <<: *mbed-psa-compile-test
138+
name: "Compile PSA example - debug (FVP_MPS2_M3)"
139+
env: TARGET_NAME=FVP_MPS2_M3 PROFILE=debug CACHE_NAME=debug-FVP_MPS2_M3
140+
141+
# FVP_MPS2_M4
142+
143+
- <<: *mbed-psa-compile-test
144+
name: "Compile PSA example - release (FVP_MPS2_M4)"
145+
env: TARGET_NAME=FVP_MPS2_M4 PROFILE=release CACHE_NAME=release-FVP_MPS2_M4
146+
147+
- <<: *mbed-psa-compile-test
148+
name: "Compile PSA example - debug (FVP_MPS2_M4)"
149+
env: TARGET_NAME=FVP_MPS2_M4 PROFILE=debug CACHE_NAME=debug-FVP_MPS2_M4
150+
151+
# FVP_MPS2_M7
152+
153+
- <<: *mbed-psa-compile-test
154+
name: "Compile PSA example - release (FVP_MPS2_M7)"
155+
env: TARGET_NAME=FVP_MPS2_M7 PROFILE=release CACHE_NAME=release-FVP_MPS2_M7
156+
157+
- <<: *mbed-psa-compile-test
158+
name: "Compile PSA example - debug (FVP_MPS2_M7)"
159+
env: TARGET_NAME=FVP_MPS2_M7 PROFILE=debug CACHE_NAME=debug-FVP_MPS2_M7
160+
161+
# GD32_F450ZI
162+
163+
- <<: *mbed-psa-compile-test
164+
name: "Compile PSA example - release (GD32_F450ZI)"
165+
env: TARGET_NAME=GD32_F450ZI PROFILE=release CACHE_NAME=release-GD32_F450ZI
166+
167+
- <<: *mbed-psa-compile-test
168+
name: "Compile PSA example - debug (GD32_F450ZI)"
169+
env: TARGET_NAME=GD32_F450ZI PROFILE=debug CACHE_NAME=debug-GD32_F450ZI

0 commit comments

Comments
 (0)