Skip to content

Commit

Permalink
Apparently shallow submodules are bleeding edge
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed May 18, 2019
1 parent 666af3d commit 07a8053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ git:

before_install:
- export -f travis_nanoseconds travis_time_start travis_time_finish
- if ! [ -x ./test ]; then git submodule update --init --recursive $([ $TRAVIS_OS_NAME = windows ] || echo --depth 1) .cppsm; fi
- if [[ $(git version) =~ \ 2\.19\. ]]; then GIT_DEPTH=(--no-recommend-shallow); else GIT_DEPTH=(--depth 1); fi
- if ! [ -x ./test ]; then git submodule update --init --recursive "${GIT_DEPTH[@]}" .cppsm; fi

script:
- if [ -x ./test ]; then ./test; else .cppsm/.cli/travis-ci; fi

0 comments on commit 07a8053

Please sign in to comment.