Skip to content

Commit 2076d2b

Browse files
LDong-ArmPatater
authored andcommitted
Use mbed-tools deploy
The latest `mbed-tools deploy` automatically uses the shallowest clone possible. It has the advantage of fetching the version in mbed-os.lib, compared to a hardcoded `git clone` in `.travis.yml` which fetches the latest `master` branch of Mbed OS.
1 parent 8112b11 commit 2076d2b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
apt-get update -y
2323
apt-get install -y cmake srecord ninja-build # TF-M dependencies
2424
cd mbed-os-tf-m-regression-tests
25-
git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git
25+
mbed-tools deploy
2626
- compile:
2727
target: "ARM_MUSCA_S1"
2828
- compile:

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ matrix:
7272
- sudo ln -s $(which ccache) bin/arm-none-eabi-gcc
7373
- sudo ln -s $(which ccache) bin/arm-none-eabi-g++
7474
- export PATH="$(pwd)/bin:$PATH"
75-
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
76-
- git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git
7775
# Install Mbed CLI and dependencies
7876
- pip install --upgrade mbed-tools
77+
- mbed-tools deploy
7978
- pip install -r mbed-os/requirements.txt
8079
script:
8180
# Build TF-M and all tests

0 commit comments

Comments
 (0)