Skip to content
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

Update docs on git submodules #4

Merged
merged 4 commits into from
Jan 21, 2014
Merged
Changes from all commits
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
14 changes: 12 additions & 2 deletions user/build-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,19 @@ If your project has native dependencies (for example, libxml or libffi) or needs
you can install packages via apt and even use 3rd-party apt repositories and PPAs. For more see dedicated sections later in this guide.


### Updating Git Submodules
### Git Submodules

If your project uses Git submodules, use the following technique to clone them before dependencies installation:
Travis CI automatically initializes and updates submodules when there's a `.gitmodules` file in the root of the repository.


This can be turned off by setting:

git:
submodules: false

If your project requires some specific option for your Git submodules which Travis CI does not support out of the box, then you can turn the automatic integration off and use the `before_install` hook to initializes and update them.

For example:

before_install:
- git submodule update --init --recursive
Expand Down