File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1717
1818before_install :
1919 - export -f travis_nanoseconds travis_time_start travis_time_finish
20- - if [[ $(git version) =~ \ 2\.19\. ]]; then GIT_DEPTH=(--no-recommend-shallow); else GIT_DEPTH=(--depth 1); fi
21- - if ! [ -x ./test ]; then git submodule update --init --recursive "${GIT_DEPTH[@]}" .cppsm; fi
20+ - export GIT_DEPTH=$(if [ 002021000 -le $(git --version | sed -e 's#^[^0-9]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$#00\1.00\2.00\3#g' -e 's#[0-9]*\([0-9]\{3\}\)\.*#\1#g') ]; then echo '--depth 1'; fi)
2221
2322script :
24- - if [ -x ./test ]; then ./test; else .cppsm/.cli/travis-ci; fi
23+ - if ! [ -x .cppsm/travis-ci ]; then git submodule --quiet update --init --no-recommend-shallow $GIT_DEPTH .cppsm; fi
24+ - .cppsm/travis-ci
You can’t perform that action at this time.
0 commit comments