Skip to content

Commit

Permalink
sparse checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tvlooy authored and wouterj committed Dec 16, 2013
1 parent b6f693e commit 8dec729
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@ python:

install:
- "git submodule update --init"
- "git clone http://github.com/sensiolabs/SensioFrameworkExtraBundle _bndls/sensio-framework-extra"
- "git clone http://github.com/sensiolabs/SensioGeneratorBundle _bndls/sensio-generator"
- "git clone http://github.com/doctrine/DoctrineFixturesBundle _bndls/doctrine-fixtures"
- "git clone http://github.com/doctrine/DoctrineMigrationsBundle _bndls/doctrine-migrations"
- "git clone http://github.com/doctrine/DoctrineMongoDBBundle _bndls/doctrine-mongodb"
- "git clone http://github.com/symfony-cmf/symfony-cmf-docs cmf"
- "mv _bndls/doctrine-mongodb/Resources/doc bundles/DoctrineMongoDBBundle"
- "mv _bndls/doctrine-migrations/Resources/doc bundles/DoctrineMigrationsBundle"
- "mv _bndls/doctrine-fixtures/Resources/doc bundles/DoctrineFixturesBundle"
- "mv _bndls/sensio-framework-extra/Resources/doc bundles/SensioFrameworkExtraBundle"
- "mv _bndls/sensio-generator/Resources/doc bundles/SensioGeneratorBundle"
- "bash install.sh"
- "pip install -q -r requirements.txt --use-mirrors"

script: sphinx-build -nW -b html -d _build/doctrees . _build/html
22 changes: 22 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

function sparse_checkout {
mkdir sparse_checkout
cd sparse_checkout
git init
git config core.sparsecheckout true
git remote add -f origin http://github.com/$1/$2
echo Resources/doc > .git/info/sparse-checkout
git checkout master
mv Resources/doc ../bundles/$2
cd ..
rm -rf sparse_checkout
}

sparse_checkout sensiolabs SensioFrameworkExtraBundle
sparse_checkout sensiolabs SensioGeneratorBundle
sparse_checkout doctrine DoctrineFixturesBundle
sparse_checkout doctrine DoctrineMigrationsBundle
sparse_checkout doctrine DoctrineMongoDBBundle
git clone http://github.com/symfony-cmf/symfony-cmf-docs cmf

0 comments on commit 8dec729

Please sign in to comment.