nnstreamer / TAOS-CI

:tangerine: TAOS-CI (a.k.a LightSys) is an lightweight and efficient CI system to achieve "Review less, merge faster" with a tool-based review system. It is completely compatible with all GitHub repositories although TAOS-CI is designed & implemented for NNStreamer repository. (Homepage: https://taos-ci.github.io/)
http://nnstreamer.mooo.com/TAOS-CI/ci/taos/
Apache License 2.0
118 stars 89 forks source link

How to improve git clone & gbs build procedure #692

Open leemgs opened 3 years ago

leemgs commented 3 years ago

Currently, we support the below acceleration methods as follows to accelerate git and GBS acitivty of the big repositories. We need to find additional methods continually.

git clone

--reference

git clone --reference ~/gitcaches/your-repo.reference

If the reference repository is on the local machine, automatically setup .git/objects/info/alternates to obtain objects from the reference repository.

--single-branch

Since git 1.7.10, you can also limit the amount of history you clone by cloning a single branch, like so:

git clone -b {branch_name} --single-branch {Repository-URL}
ex) git clone -b javajigi --single-branch https://github.com/myorg/myrepo01

--depth

Provide an argument of -- depth 1 to the git clone command to copy only the latest revision of a repo:

git clone -–depth [depth] [remote-url]
git clone --depth 1 https://github.com/your-org/your-repo01

gbs build

Use the .../GBS-ROOT/cache/ folder.

mkdir -p ./GBS-ROOT/local
pushd ./GBS-ROOT/local
ln -s $REPOCACHE cache

Reference

taos-ci commented 3 years ago

:octocat: cibot: Thank you for posting issue #692. The person in charge will reply soon.