Skip to content

Commit 5deb52d

Browse files
committed
Updated
1 parent 0c460cb commit 5deb52d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.cppsm

Submodule .cppsm updated 1 file

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ git:
1717

1818
before_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

2322
script:
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

0 commit comments

Comments
 (0)