Skip to content

Commit 596fec6

Browse files
committed
Add Travis CI for supported targets & all profiles
Note: CYTFM_064B0S2_4343W is excluded until github.com/ARMmbed/mbed-os/issues/14022 is fixed.
1 parent 0dd455c commit 596fec6

File tree

1 file changed

+171
-0
lines changed

1 file changed

+171
-0
lines changed

.travis.yml

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# Copyright (c) 2013-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-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-compile-test
50+
name: "Compile PSA example - debug (ARM_MUSCA_S1)"
51+
env: TARGET_NAME=ARM_MUSCA_S1 PROFILE=debug
52+
53+
# ARM_MUSCA_S1_NS
54+
55+
- <<: *mbed-compile-test
56+
name: "Compile PSA example - release (ARM_MUSCA_S1_NS)"
57+
env: TARGET_NAME=ARM_MUSCA_S1_NS PROFILE=release
58+
59+
- <<: *mbed-compile-test
60+
name: "Compile PSA example - debug (ARM_MUSCA_S1_NS)"
61+
env: TARGET_NAME=ARM_MUSCA_S1_NS PROFILE=debug
62+
63+
# ARM_MUSCA_B1
64+
65+
- <<: *mbed-compile-test
66+
name: "Compile PSA example - release (ARM_MUSCA_B1)"
67+
env: TARGET_NAME=ARM_MUSCA_B1 PROFILE=release
68+
69+
- <<: *mbed-compile-test
70+
name: "Compile PSA example - debug (ARM_MUSCA_B1)"
71+
env: TARGET_NAME=ARM_MUSCA_B1 PROFILE=debug
72+
73+
# ARM_MUSCA_B1_NS
74+
75+
- <<: *mbed-compile-test
76+
name: "Compile PSA example - release (ARM_MUSCA_B1_NS)"
77+
env: TARGET_NAME=ARM_MUSCA_B1_NS PROFILE=release
78+
79+
- <<: *mbed-compile-test
80+
name: "Compile PSA example - debug (ARM_MUSCA_B1_NS)"
81+
env: TARGET_NAME=ARM_MUSCA_B1_NS PROFILE=debug
82+
83+
# K64F
84+
85+
- <<: *mbed-compile-test
86+
name: "Compile PSA example - release (K64F)"
87+
env: TARGET_NAME=K64F PROFILE=release
88+
89+
- <<: *mbed-compile-test
90+
name: "Compile PSA example - debug (K64F)"
91+
env: TARGET_NAME=K64F PROFILE=debug
92+
93+
# K66F
94+
95+
- <<: *mbed-compile-test
96+
name: "Compile PSA example - release (K66F)"
97+
env: TARGET_NAME=K66F PROFILE=release
98+
99+
- <<: *mbed-compile-test
100+
name: "Compile PSA example - debug (K66F)"
101+
env: TARGET_NAME=K66F PROFILE=debug
102+
103+
# NUCLEO_F429ZI
104+
105+
- <<: *mbed-compile-test
106+
name: "Compile PSA example - release (NUCLEO_F429ZI)"
107+
env: TARGET_NAME=NUCLEO_F429ZI PROFILE=release
108+
109+
- <<: *mbed-compile-test
110+
name: "Compile PSA example - debug (NUCLEO_F429ZI)"
111+
env: TARGET_NAME=NUCLEO_F429ZI PROFILE=debug
112+
113+
# FVP_MPS2_M0
114+
115+
- <<: *mbed-compile-test
116+
name: "Compile PSA example - release (FVP_MPS2_M0)"
117+
env: TARGET_NAME=FVP_MPS2_M0 PROFILE=release
118+
119+
- <<: *mbed-compile-test
120+
name: "Compile PSA example - debug (FVP_MPS2_M0)"
121+
env: TARGET_NAME=FVP_MPS2_M0 PROFILE=debug
122+
123+
# FVP_MPS2_M0P
124+
125+
- <<: *mbed-compile-test
126+
name: "Compile PSA example - release (FVP_MPS2_M0P)"
127+
env: TARGET_NAME=FVP_MPS2_M0P PROFILE=release
128+
129+
- <<: *mbed-compile-test
130+
name: "Compile PSA example - debug (FVP_MPS2_M0P)"
131+
env: TARGET_NAME=FVP_MPS2_M0P PROFILE=debug
132+
133+
# FVP_MPS2_M3
134+
135+
- <<: *mbed-compile-test
136+
name: "Compile PSA example - release (FVP_MPS2_M3)"
137+
env: TARGET_NAME=FVP_MPS2_M3 PROFILE=release
138+
139+
- <<: *mbed-compile-test
140+
name: "Compile PSA example - debug (FVP_MPS2_M3)"
141+
env: TARGET_NAME=FVP_MPS2_M3 PROFILE=debug
142+
143+
# FVP_MPS2_M4
144+
145+
- <<: *mbed-compile-test
146+
name: "Compile PSA example - release (FVP_MPS2_M4)"
147+
env: TARGET_NAME=FVP_MPS2_M4 PROFILE=release
148+
149+
- <<: *mbed-compile-test
150+
name: "Compile PSA example - debug (FVP_MPS2_M4)"
151+
env: TARGET_NAME=FVP_MPS2_M4 PROFILE=debug
152+
153+
# FVP_MPS2_M7
154+
155+
- <<: *mbed-compile-test
156+
name: "Compile PSA example - release (FVP_MPS2_M7)"
157+
env: TARGET_NAME=FVP_MPS2_M7 PROFILE=release
158+
159+
- <<: *mbed-compile-test
160+
name: "Compile PSA example - debug (FVP_MPS2_M7)"
161+
env: TARGET_NAME=FVP_MPS2_M7 PROFILE=debug
162+
163+
# GD32_F450ZI
164+
165+
- <<: *mbed-compile-test
166+
name: "Compile PSA example - release (GD32_F450ZI)"
167+
env: TARGET_NAME=GD32_F450ZI PROFILE=release
168+
169+
- <<: *mbed-compile-test
170+
name: "Compile PSA example - debug (GD32_F450ZI)"
171+
env: TARGET_NAME=GD32_F450ZI PROFILE=debug

0 commit comments

Comments
 (0)