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

sds / overcommit / 1556
91%

Build:
DEFAULT BRANCH: master
Ran 24 Jan 2018 05:03AM UTC
Jobs 6
Files 182
Run time 21min
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
1556

push

travis-ci

sds
Update Pre-Push Context Modified Files

Previously, `Overcommit::HookContext::PrePush::modified_files` is set as `[]` which
does not give us any value in `applicable_files` as in `PreCommit` context.

This change updates the method to return list of added and updated files:

1. compared between current branch and tracking branch if tracking branch is available.

2. compared between current branch with parent branch if tracking branch is not available.

This gives us above values in `applicable_files` in `PrePush` context.

One usage example is we can create a hook to scan prohibited keywords such as `eval`, `console.log`, etc. before pushing to remote. Previously we can only do it in `PreCommit` hook but now we could also do it in `PrePush`.

2731 of 3182 relevant lines covered (85.83%)

486.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1556.1 (2.0) 24 Jan 2018 05:03AM UTC 0
90.08
Travis Job 1556.1
2 1556.2 (2.1) 24 Jan 2018 05:03AM UTC 0
90.08
Travis Job 1556.2
3 1556.3 (2.2) 24 Jan 2018 05:03AM UTC 0
89.8
Travis Job 1556.3
4 1556.4 (2.3.0) 24 Jan 2018 05:03AM UTC 0
90.08
Travis Job 1556.4
5 1556.5 (2.4.1) 24 Jan 2018 05:03AM UTC 0
89.81
Travis Job 1556.5
6 1556.6 (jruby-9.1.2.0) 24 Jan 2018 05:24AM UTC 0
0.0
Travis Job 1556.6
Source Files on build 1556
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1556
  • 9af0b3cc on github
  • Prev Build on master (#1552)
  • Next Build on master (#1557)
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