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

cyverse / atmosphere / 815
36%
master: 37%

Build:
Build:
LAST BUILD BRANCH: script-chmod
DEFAULT BRANCH: master
Ran 20 Oct 2017 12:27AM UTC
Jobs 2
Files 450
Run time 198798min
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
815

Pull #533

travis-ci

web-flow
Guard against division by zero

When an image has not be launched, we hit `total_launched = 0` and then
the percentage calculation will throw:
...
>>> ZeroDivisionError: float division by zero

This sets the percent to `0.0` and only does the division if we have
launches.

Note: when trying to test or reproduce this, you might need to do a
clear of the redis cache for these calculations to be performed:

$ redis-cli flushall

One image that did *not* have launced in my local test envirionment was
- https://local.atmo.cloud/application/images/1468
Pull Request #533: Problem: success percent might cause division by zero error

971 of 6950 branches covered (13.97%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

11590 of 27950 relevant lines covered (41.47%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 815.1 (DISTRIBUTION=cyverse) 20 Oct 2017 12:27AM UTC 0
35.02
Travis Job 815.1
2 815.2 (DISTRIBUTION=jetstream) 20 Oct 2017 12:28AM UTC 0
34.71
Travis Job 815.2
Source Files on build 815
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #815
  • Pull Request #533
  • PR Base - v28 (#807)
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