.travis/run.sh: if $BUILD_DIST is true, do git fetch --unshallow
Else Travis only clones the last 50 commits, and `git describe` doesn't work.
This commit is contained in:
parent
0f7bc8f710
commit
690b0efb0e
@ -17,5 +17,12 @@ if [[ "${TOXENV}" == "jython" ]]; then
|
|||||||
jython -m pytest || true
|
jython -m pytest || true
|
||||||
else
|
else
|
||||||
source ~/.venv/bin/activate
|
source ~/.venv/bin/activate
|
||||||
|
if [ "$BUILD_DIST" = true ]; then
|
||||||
|
# Travis by default only clones a 'shallow' repository with --depth=50.
|
||||||
|
# When building the distribution packages, we use git to determine the
|
||||||
|
# package version string (via setuptools_scm), hence we need to fetch
|
||||||
|
# the whole repo, and not just the last 50 commits.
|
||||||
|
git fetch --unshallow
|
||||||
|
fi
|
||||||
tox
|
tox
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user