Skip to content

Commit eefe095

Browse files
committed
Add Travis CI to build supported targets with debug and release profiles
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 Note: CYTFM_064B0S2_4343W is excluded until an issue with its Post-Build script is fixed.
1 parent 0dd455c commit eefe095

File tree

1 file changed

+151
-0
lines changed

1 file changed

+151
-0
lines changed

.travis.yml

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
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+
matrix:
22+
include:
23+
24+
# ARM_MUSCA_S1
25+
26+
- &mbed-psa-compile-test
27+
stage: "Compile"
28+
name: "Compile PSA example - release (ARM_MUSCA_S1)"
29+
env: TARGET_NAME=ARM_MUSCA_S1 PROFILE=release
30+
language: python
31+
python: 3.8
32+
install:
33+
# Install arm-none-eabi-gcc
34+
- pushd /home/travis/build && mkdir arm-gcc && cd arm-gcc
35+
- 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
36+
- tar xf gcc-arm-none-eabi-9-2020-q2-update.tar.bz2
37+
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2020-q2-update/bin"
38+
- popd
39+
- arm-none-eabi-gcc --version
40+
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
41+
- git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
42+
# Install Mbed CLI and dependencies
43+
- pip install --upgrade mbed-cli
44+
- pip install -r mbed-os/requirements.txt
45+
script:
46+
- echo mbed compile -t GCC_ARM -m ${TARGET_NAME} --profile ${PROFILE}
47+
- mbed compile -t GCC_ARM -m ${TARGET_NAME} --profile ${PROFILE}
48+
49+
- <<: *mbed-psa-compile-test
50+
name: "Compile PSA example - debug (ARM_MUSCA_S1)"
51+
env: TARGET_NAME=ARM_MUSCA_S1 PROFILE=debug
52+
53+
# ARM_MUSCA_B1
54+
55+
- <<: *mbed-psa-compile-test
56+
name: "Compile PSA example - release (ARM_MUSCA_B1)"
57+
env: TARGET_NAME=ARM_MUSCA_B1 PROFILE=release
58+
59+
- <<: *mbed-psa-compile-test
60+
name: "Compile PSA example - debug (ARM_MUSCA_B1)"
61+
env: TARGET_NAME=ARM_MUSCA_B1 PROFILE=debug
62+
63+
# K64F
64+
65+
- <<: *mbed-psa-compile-test
66+
name: "Compile PSA example - release (K64F)"
67+
env: TARGET_NAME=K64F PROFILE=release
68+
69+
- <<: *mbed-psa-compile-test
70+
name: "Compile PSA example - debug (K64F)"
71+
env: TARGET_NAME=K64F PROFILE=debug
72+
73+
# K66F
74+
75+
- <<: *mbed-psa-compile-test
76+
name: "Compile PSA example - release (K66F)"
77+
env: TARGET_NAME=K66F PROFILE=release
78+
79+
- <<: *mbed-psa-compile-test
80+
name: "Compile PSA example - debug (K66F)"
81+
env: TARGET_NAME=K66F PROFILE=debug
82+
83+
# NUCLEO_F429ZI
84+
85+
- <<: *mbed-psa-compile-test
86+
name: "Compile PSA example - release (NUCLEO_F429ZI)"
87+
env: TARGET_NAME=NUCLEO_F429ZI PROFILE=release
88+
89+
- <<: *mbed-psa-compile-test
90+
name: "Compile PSA example - debug (NUCLEO_F429ZI)"
91+
env: TARGET_NAME=NUCLEO_F429ZI PROFILE=debug
92+
93+
# FVP_MPS2_M0
94+
95+
- <<: *mbed-psa-compile-test
96+
name: "Compile PSA example - release (FVP_MPS2_M0)"
97+
env: TARGET_NAME=FVP_MPS2_M0 PROFILE=release
98+
99+
- <<: *mbed-psa-compile-test
100+
name: "Compile PSA example - debug (FVP_MPS2_M0)"
101+
env: TARGET_NAME=FVP_MPS2_M0 PROFILE=debug
102+
103+
# FVP_MPS2_M0P
104+
105+
- <<: *mbed-psa-compile-test
106+
name: "Compile PSA example - release (FVP_MPS2_M0P)"
107+
env: TARGET_NAME=FVP_MPS2_M0P PROFILE=release
108+
109+
- <<: *mbed-psa-compile-test
110+
name: "Compile PSA example - debug (FVP_MPS2_M0P)"
111+
env: TARGET_NAME=FVP_MPS2_M0P PROFILE=debug
112+
113+
# FVP_MPS2_M3
114+
115+
- <<: *mbed-psa-compile-test
116+
name: "Compile PSA example - release (FVP_MPS2_M3)"
117+
env: TARGET_NAME=FVP_MPS2_M3 PROFILE=release
118+
119+
- <<: *mbed-psa-compile-test
120+
name: "Compile PSA example - debug (FVP_MPS2_M3)"
121+
env: TARGET_NAME=FVP_MPS2_M3 PROFILE=debug
122+
123+
# FVP_MPS2_M4
124+
125+
- <<: *mbed-psa-compile-test
126+
name: "Compile PSA example - release (FVP_MPS2_M4)"
127+
env: TARGET_NAME=FVP_MPS2_M4 PROFILE=release
128+
129+
- <<: *mbed-psa-compile-test
130+
name: "Compile PSA example - debug (FVP_MPS2_M4)"
131+
env: TARGET_NAME=FVP_MPS2_M4 PROFILE=debug
132+
133+
# FVP_MPS2_M7
134+
135+
- <<: *mbed-psa-compile-test
136+
name: "Compile PSA example - release (FVP_MPS2_M7)"
137+
env: TARGET_NAME=FVP_MPS2_M7 PROFILE=release
138+
139+
- <<: *mbed-psa-compile-test
140+
name: "Compile PSA example - debug (FVP_MPS2_M7)"
141+
env: TARGET_NAME=FVP_MPS2_M7 PROFILE=debug
142+
143+
# GD32_F450ZI
144+
145+
- <<: *mbed-psa-compile-test
146+
name: "Compile PSA example - release (GD32_F450ZI)"
147+
env: TARGET_NAME=GD32_F450ZI PROFILE=release
148+
149+
- <<: *mbed-psa-compile-test
150+
name: "Compile PSA example - debug (GD32_F450ZI)"
151+
env: TARGET_NAME=GD32_F450ZI PROFILE=debug

0 commit comments

Comments
 (0)