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

bradleyfalzon / gopherci / 233 / 1
57%
master: 61%

Build:
Build:
LAST BUILD BRANCH: review-no-approve
DEFAULT BRANCH: master
Ran 09 Apr 2017 11:15AM UTC
Files 15
Run time 0s
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

09 Apr 2017 11:03AM UTC coverage: 56.769% (+0.07%) from 56.696%
GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json

push

travis-ci

bradleyfalzon
Handle repositories with no history (eg new)

For a new repository, or a branch which doesn't have any history
(tracking a different git tree), we can't get a diff using the
"git diff abcd~5...abcd" method.

Instead, we'll try that way, and if it fails, try to get the diff
using "git show abcd".

I chose not to have the analyser check the ref "abcd~5" exists first
to help simplify the code, with less conditionals, but I'm not
convinced this is any more readable and potentially less reliable.
Therefore, it may be refactored in the future.

I've added an integration test for this as well, to ensure the
behaviour with git is always tested and not mocked like it is in the
unit test.

Fixes #79.

780 of 1374 relevant lines covered (56.77%)

1.73 hits per line

Source Files on job 233.1 (GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 233
  • Travis Job 233.1
  • d7a0e4b1 on github
  • Prev Job for GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json on failed-diff (#232.1)
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