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

mbland / go-script-bash / 72 / 1
95%
master: 95%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2016 03:27PM UTC
Files 6
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

14 Sep 2016 03:15PM UTC coverage: 41.558% (-51.9%) from 93.486%
72.1

push

travis-ci

mbland
test, kcov: Run coverage only by default on Travis

Now, instead of having Travis run the test, then run them again, and ignore the
return status of `kcov`, this change should allow Travis to just perform the
coverage run and rely on the `kcov` exit status.

As explained in the comment for the `test: run coverage by default on Travis
Linux` test case:

This test also makes sure the invocation doesn't cause a second recursive call
to `run_kcov` thanks to the `_COVERAGE_RUN` variable.  Previously, seemingly
successful coverage runs (added in commit
4440832c2) were causing Travis failures,
ameliorated in commit cc284d11e. These were
due to the `run_kcov` getting called recursively and failing because the first
call already created the `tests/coverage` directory.

Here was the chain of events:

- Travis calls `./go test`.
- Test suite runs and succeeds.
- `"$?" -eq '0' && "$TRAVIS_OS_NAME" == 'linux'` condition met.
- `_test_coverage` and `run_kcov` executed.
- `run_kcov` creates `tests/coverage` and executes `kcov ./go test`.
  - Test suite runs and succeeds.
  - `"$?" -eq '0' && "$TRAVIS_OS_NAME" == 'linux'` condition met.
  - `_test_coverage` and `run_kcov` executed.
  - `run_kcov` fails because `tests/coverage` already exists.
- `kcov` sends coverage info to Coveralls, but exits with an error.
- Travis build reports failure.

With the `_COVERAGE_RUN` variable, the recursive call is now
short-circuited.

96 of 231 relevant lines covered (41.56%)

132.04 hits per line

Source Files on job 72.1
  • Tree
  • List 0
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 72
  • Travis Job 72.1
  • 89c3b15a on github
  • Prev Job for on master (#71.1)
  • Next Job for on master (#73.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