Skip to content

Commit 6cc4b06

Browse files
committed
Add Travis CI
1 parent 3d16554 commit 6cc4b06

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.travis.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
addons:
22+
apt:
23+
packages:
24+
- cmake
25+
- srecord
26+
27+
matrix:
28+
include:
29+
30+
# ARM_MUSCA_S1
31+
32+
- &compile-tests
33+
stage: "Compile"
34+
name: "Compile Regression and Compliance tests - ARM_MUSCA_S1"
35+
env: TARGET_NAME=ARM_MUSCA_S1
36+
language: python
37+
python: 3.8
38+
install:
39+
# Install arm-none-eabi-gcc
40+
- pushd /home/travis/build && mkdir arm-gcc && cd arm-gcc
41+
- curl -L0 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2?revision=108bd959-44bd-4619-9c19-26187abf5225&la=en&hash=E788CE92E5DFD64B2A8C246BBA91A249CB8E2D2D" --output gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
42+
- tar xf gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
43+
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2019-q4-major/bin"
44+
- popd
45+
- arm-none-eabi-gcc --version
46+
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
47+
- git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
48+
# Install Mbed CLI and dependencies
49+
- pip install --upgrade mbed-cli
50+
- pip install -r mbed-os/requirements.txt
51+
script:
52+
# Build TF-M and all tests
53+
- python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --build
54+
55+
# ARM_MUSCA_B1
56+
57+
- <<: *compile-tests
58+
name: "Compile Regression and Compliance tests - ARM_MUSCA_B1"
59+
env: TARGET_NAME=ARM_MUSCA_B1

0 commit comments

Comments
 (0)