[TASK] Travis: Speedup cloning of repos 58/22058/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Sat, 6 Jul 2013 18:51:50 +0000 (20:51 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 6 Jul 2013 21:48:03 +0000 (23:48 +0200)
Make use of the additional parameters of git clone
to vastly reduce the amount of data transfered when cloning the
repositories.

Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: Id0c5f3a4ed7ee0bdeb6053c6e0dc606362909d1e
Reviewed-on: https://review.typo3.org/22058
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
.travis.yml

index 5966734..1852db4 100644 (file)
@@ -11,7 +11,7 @@ services:
 
 before_script:
 # Install build dependencies
-  - git clone git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
+  - git clone --single-branch --branch master --depth 1 git://github.com/typo3-ci/TYPO3-Travis-Integration.git build-environment
   - source build-environment/install-helper.sh
   - installPhpModule igbinary
   - installPhpModule -y memcache
@@ -19,9 +19,9 @@ before_script:
   - if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then installPhpModule -y apc; fi
 
 # Install rudimentary TYPO3
-  - git clone git://git.typo3.org/TYPO3v4/Distributions/Introduction.git build-environment/Introduction
+  - git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Distributions/Introduction.git build-environment/Introduction
   - mv build-environment/typo3conf .
-  - git clone git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
+  - git clone --single-branch --branch master --depth 1 git://git.typo3.org/TYPO3v4/Extensions/phpunit.git typo3conf/ext/phpunit/
   - mkdir fileadmin
   - mkdir uploads
   - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP DATABASE IF EXISTS typo3_test;" -uroot; fi