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

all3fox / scancode-toolkit / 56 / 10
84%
develop: 76%

Build:
Build:
LAST BUILD BRANCH: travis-ci
DEFAULT BRANCH: develop
Ran 28 Mar 2017 05:14PM UTC
Files 10
Run time 1s
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

28 Mar 2017 05:05PM UTC coverage: 61.075%. First build
TEST_SUITE="pytest -n 2 -vvs --cov=src/extractcode tests/extractcode"

push

travis-ci

all3fox
Change .travis.yml to enable test coverage reports

1) Change to language: python to control python version precisely

Otherwise, if you use language: cpp (previous) or language: generic,
you get either `2.7.3` or `2.7.9` which do not work with coveralls.

With them the build succeeds but sending coverage silently fails.

2) Include osx explicitly and use language: generic trick

According to [1], travis osx images cannot be used in language: python
builds. So, remove the explicit

os:
  - linux
  - osx

part of the build matrix and instead manually append osx entries.

[1]: https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)

3) Change pytest commands in env: matrix to actually collect coverage
4) Add after_success: coveralls that reports coverage to coveralls.io

Finally, current .travis.yml explicitly uses pip to install
`pytest-cov` and `coveralls` into the venv created by ./configure
because these packages depend on `coverage` which in turn not provide
an obvious way to create a universal `py2.py3-none-any` wheel,
probably because it contains C extensions.

Building and shipping `coverage` and its descendants together with
`scancode-toolkit` will be next.

Signed-off-by: Aleksandr Lisianoi <all3fox@gmail.com>

Refs: https://github.com/nexB/scancode-toolkit/issues/564

1602 of 2623 relevant lines covered (61.08%)

0.61 hits per line

Source Files on job 56.10 (TEST_SUITE="pytest -n 2 -vvs --cov=src/extractcode tests/extractcode")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 56
  • Travis Job 56.10
  • 1de1067f on github
  • Next Job for on issue-564-ci-poking (#66.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