Skip to content

Instantly share code, notes, and snippets.

@Mr-Kumar-Abhishek
Forked from petrbel/.travis.yml
Created December 15, 2015 07:25
Show Gist options
  • Save Mr-Kumar-Abhishek/b498d201fd3734ee9d60 to your computer and use it in GitHub Desktop.
Save Mr-Kumar-Abhishek/b498d201fd3734ee9d60 to your computer and use it in GitHub Desktop.
Travis-CI submodules
# Use https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior!
# disable the default submodule logic
git:
submodules: false
# use sed to replace the SSH URL with the public URL, then init and update submodules
before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment