Skip to content

Commit

Permalink
Fix $TRAVIS_COMMIT_RANGE (#927)
Browse files Browse the repository at this point in the history
- Travis unshallow if shallow clone breaks ancestry
  • Loading branch information
seldridge committed Oct 31, 2018
1 parent 92600f1 commit 1e89e41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -17,6 +17,11 @@ env:
PATH=$PATH:$VERILATOR_ROOT/bin:$TRAVIS_BUILD_DIR/utils/bin
SBT_ARGS="-Dsbt.log.noformat=true"

before_script:
- OLDEST_SHARED=`git log --format=%H $TRAVIS_COMMIT_RANGE | tail -n1`
- OLDEST_COMMIT=`git log --format=%H | tail -n1`
- if [ $OLDEST_SHARED == $OLDEST_COMMIT ]; then git fetch --unshallow; fi

stages:
- prepare
- test
Expand Down

0 comments on commit 1e89e41

Please sign in to comment.