Skip to content

[WIP] Travis integration #3328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 20, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sparse checkouts
  • Loading branch information
tvlooy authored and wouterj committed Dec 16, 2013
commit 8dec7293f736c28d0c896c03338c54b35c655fc9
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmf? ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for some reason, the cms in included in the core docs instead of a seperate sphinx project (although this causes some issues in the docs)