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
|
||||
- run: |
|
||||
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
|
||||
git checkout $CIRCLE_BRANCH || git checkout master
|
||||
export WEBAPP_GIT_COMMIT=$(git rev-parse HEAD)
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
at: ~/mattermost/
|
||||
- run:
|
||||
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:
|
||||
name: Install Go
|
||||
command: sudo apt-get update && sudo apt-get install golang
|
||||
@@ -134,7 +134,7 @@ jobs:
|
||||
at: ~/mattermost/
|
||||
- run:
|
||||
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
|
||||
echo "Trying to checkout the same branch on mattermost-api-reference as mattermost-server"
|
||||
git checkout ${CIRCLE_BRANCH} || true
|
||||
|
||||
Ссылка в новой задаче
Block a user