diff options
| author | Schuyler Eldridge | 2018-10-30 21:49:46 -0400 |
|---|---|---|
| committer | GitHub | 2018-10-30 21:49:46 -0400 |
| commit | 1e89e41604c9925c7de89eb85c7d7d0fa48e1e08 (patch) | |
| tree | 7b30ea451bb1a4e89b6860ecf8d2720c4f880158 | |
| parent | 92600f1aadd8e3fbddb4e4bc60ad9d22839cc99d (diff) | |
Fix $TRAVIS_COMMIT_RANGE (#927)
- Travis unshallow if shallow clone breaks ancestry
| -rw-r--r-- | .travis.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index cd94031f..78fcea0f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 |
