Browse Source

git submodules workaround

Roberto Parolin 6 years ago
parent
commit
a9e951271e
1 changed files with 9 additions and 0 deletions
  1. 9 0
      .travis.yml

+ 9 - 0
.travis.yml

@@ -34,6 +34,15 @@ matrix:
       - os: osx
         compiler: gcc
 
+# Handle git submodules yourself
+git:
+    submodules: false
+
+# Use sed to replace the SSH URL with the public URL, then initialize submodules
+before_install:
+    - sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
+    - git submodule update --init --recursive
+
 install:
 # MOJI check; exit 1 if non-ascii characters detected in C++
   - if [[ -n "$USE_MOJI_CHECK" && -n `git grep -P "[^[:ascii:]]" source test` ]]; then echo "Moji Detected" && exit 1   ;fi