瀏覽代碼

git submodules workaround

Roberto Parolin 6 年之前
父節點
當前提交
a9e951271e
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      .travis.yml

+ 9 - 0
.travis.yml

@@ -34,6 +34,15 @@ matrix:
       - os: osx
       - os: osx
         compiler: gcc
         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:
 install:
 # MOJI check; exit 1 if non-ascii characters detected in C++
 # 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
   - if [[ -n "$USE_MOJI_CHECK" && -n `git grep -P "[^[:ascii:]]" source test` ]]; then echo "Moji Detected" && exit 1   ;fi