Skip to content

Commit

Permalink
Attempt to work around legacy git
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Aug 10, 2019
1 parent 3653c94 commit 62c52ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
- export GIT_DEPTH=$(if [ 002021000 -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)

script:
- if ! [ -x .cppsm/travis-ci ]; then git submodule --quiet update --init --no-recommend-shallow --depth 1 .cppsm; fi
- if ! [ -x .cppsm/travis-ci ]; then git submodule --quiet update --init --no-recommend-shallow $GIT_DEPTH .cppsm; fi
- .cppsm/travis-ci
2 changes: 1 addition & 1 deletion travis-ci
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ folded() {
echo -e "\ntravis_fold:end:cppsm.$FOLD\r"
}

folded ... concurrently GIT_UPDATE_PID git submodule update --init --depth 1 --jobs "$N_PARALLEL_UPDATE"
folded ... concurrently GIT_UPDATE_PID git submodule update --init $GIT_DEPTH --jobs "$N_PARALLEL_UPDATE"

if [ "$TRAVIS_OS_NAME" = linux ]; then
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'
Expand Down

0 comments on commit 62c52ad

Please sign in to comment.