• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

blue-yonder / pyscaffold / 390
94%
master: 98%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 14 Apr 2015 12:20PM UTC
Jobs 1
Files 8
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
390

push

travis-ci

xhochy
Handle an empty GIT repository for versioning

In the case where a pyscaffold project is moved into a new, yet empty
GIT repository, git describe fails with exit 128 due to not having any
revision, i.e. there is also no HEAD.

As we cannot distinguish `git describe` failing between an empty
repository and being outside of a directory, we also execute
`git show-refs --tags` as this will succeed in a git repository with
commits and exit with exit code 1 if inside a repository with no
commits. (In case of other errors, `git show-refs --tags` will exit with
an exit code no in 0, 1 (mostly 128) so that we can distinguish the
problem here by using the exit code of the command.)

Only in this case handle the error and do the same actions as if an
invalid tag (format) was given.

534 of 566 relevant lines covered (94.35%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 390.1 (DISTRIB="ubuntu" PYTHON_VERSION="2.7" COVERAGE="true") 14 Apr 2015 12:20PM UTC 0
94.35
Travis Job 390.1
Source Files on build 390
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #390
  • 9cd2c73e on github
  • Prev Build on fix-version-on-empty-repo (#375)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc