File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
before_install :
19
19
- export -f travis_nanoseconds travis_time_start travis_time_finish
20
+ - export GIT_DEPTH=$(if [ 002022000 -le $(git --version | sed -e 's#[^0-9.]*##g' -e 's#\([0-9]*\)#00\1#g' -e 's#[0-9]*\([0-9]\{3\}\)\.*#\1#g') ]; then echo '--depth 1'; fi)
20
21
21
22
script :
22
- - if ! [ -x .cppsm/travis-ci ]; then git submodule --quiet update --init --no-recommend-shallow --depth 1 .cppsm; fi
23
+ - if ! [ -x .cppsm/travis-ci ]; then git submodule --quiet update --init --no-recommend-shallow $GIT_DEPTH .cppsm; fi
23
24
- .cppsm/travis-ci
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ folded() {
55
55
echo -e " \ntravis_fold:end:cppsm.$FOLD \r"
56
56
}
57
57
58
- folded ... concurrently GIT_UPDATE_PID git submodule update --init --depth 1 --jobs " $N_PARALLEL_UPDATE "
58
+ folded ... concurrently GIT_UPDATE_PID git submodule update --init $GIT_DEPTH --jobs " $N_PARALLEL_UPDATE "
59
59
60
60
if [ " $TRAVIS_OS_NAME " = linux ]; then
61
61
folded ... concurrently LIBSTD_INSTALL_PID locked bash -c ' sudo -E apt-add-repository -y ppa:ubuntu-toolchain-r/test && sudo -E apt-get -yq update && sudo -E apt-get -yq --no-install-suggests --no-install-recommends install libstdc++-8-dev'
You can’t perform that action at this time.
0 commit comments