MM-27948: Use --depth=1 to clone git repos faster (#15309)
* MM-27948: Use --depth=1 to clone git repos faster https://mattermost.atlassian.net/browse/MM-27948 * trigger CI * Added no single branch
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
78766625df
Коммит
c424be882c
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: |
|
- run: |
|
||||||
cd ../
|
cd ../
|
||||||
git clone https://github.com/mattermost/mattermost-webapp.git
|
git clone --depth=1 --no-single-branch https://github.com/mattermost/mattermost-webapp.git
|
||||||
cd mattermost-webapp
|
cd mattermost-webapp
|
||||||
git checkout $CIRCLE_BRANCH || git checkout master
|
git checkout $CIRCLE_BRANCH || git checkout master
|
||||||
export WEBAPP_GIT_COMMIT=$(git rev-parse HEAD)
|
export WEBAPP_GIT_COMMIT=$(git rev-parse HEAD)
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
at: ~/mattermost/
|
at: ~/mattermost/
|
||||||
- run:
|
- run:
|
||||||
name: Checkout config
|
name: Checkout config
|
||||||
command: cd .. && git clone https://github.com/mattermost/security-automation-config
|
command: cd .. && git clone --depth=1 https://github.com/mattermost/security-automation-config
|
||||||
- run:
|
- run:
|
||||||
name: Install Go
|
name: Install Go
|
||||||
command: sudo apt-get update && sudo apt-get install golang
|
command: sudo apt-get update && sudo apt-get install golang
|
||||||
@@ -134,7 +134,7 @@ jobs:
|
|||||||
at: ~/mattermost/
|
at: ~/mattermost/
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
git clone https://github.com/mattermost/mattermost-api-reference.git
|
git clone --depth=1 --no-single-branch https://github.com/mattermost/mattermost-api-reference.git
|
||||||
cd mattermost-api-reference
|
cd mattermost-api-reference
|
||||||
echo "Trying to checkout the same branch on mattermost-api-reference as mattermost-server"
|
echo "Trying to checkout the same branch on mattermost-api-reference as mattermost-server"
|
||||||
git checkout ${CIRCLE_BRANCH} || true
|
git checkout ${CIRCLE_BRANCH} || true
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user