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

bradleyfalzon / gopherci / 137
61%
master: 61%

Build:
Build:
LAST BUILD BRANCH: review-no-approve
DEFAULT BRANCH: master
Ran 04 Feb 2017 10:34AM UTC
Jobs 1
Files 13
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

pending completion
137

push

travis-ci

bradleyfalzon
Support GitHub PushEvent

This is accomplished with a few refactors.

We no longer fetch the diff URL provided in a Pull Request event,
it was convenient, but it's not available in Pushes and we can
easily calculate it ourselves without the need for the extra
lookup. This was GitHub specific too, other providers may not have
provided that URL.

Analyse does need to process a Push differently than a Pull Request,
and this is managed by the EventType type.

We ignore the GitHub push event's Before SHA ref, during testing
force pushes, this would be the ref of the commit that's being
"overwritten" so it wouldn't exist when clonsed. Unlike a
non-forced push, where the commit exists after the clone. So instead
of using Before, we use After~len(Commits), so no matter how many
commits are being pushed, or whether the previous commit exists or
not, we should be able to process it.

Resolves #27.

118 of 118 new or added lines in 4 files covered. (100.0%)

533 of 875 relevant lines covered (60.91%)

1.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
100.0
internal/analyser/analyser.go
9
100.0
main.go
14
100.0
internal/github/handlers.go

Uncovered Existing Lines

Lines Coverage ∆ File
4
100.0
internal/queue/memory.go
8
100.0
internal/analyser/analyser.go
10
100.0
internal/github/handlers.go
12
100.0
internal/queue/gcp-pubsub.go
Jobs
ID Job ID Ran Files Coverage
1 137.1 (GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json) 04 Feb 2017 10:34AM UTC 0
60.91
Travis Job 137.1
Source Files on build 137
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #137
  • a0efc0fc on github
  • Prev Build on push (#134)
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