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

all3fox / scancode-toolkit / 67
84%
develop: 76%

Build:
Build:
LAST BUILD BRANCH: travis-ci
DEFAULT BRANCH: develop
Ran 29 Mar 2017 10:01AM UTC
Jobs 2
Files 10
Run time 1min
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
67

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 with
this trick: `language: generic` overrides `language: python` and
`python:` (empty python entry) looks less confusing in Web UI.

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

3) Move pytest commands from env: matrix section

These environment variables were not properly picked up by include'ed
osx images. Instead, they were picked up as one big lump and the last
one overwrote all the previous ones.

Tried to preserve them as some kind of a matrix but failed. Finally,
moved them into script: section and made explicit.

Also changed them to use the coverage plugin and collect coverage.

4) Add after_success: coveralls that reports coverage to coveralls.io
5) Move ./etc/release/release.sh into deploy because it wipes virtualenv

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%)

1.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 67.1 29 Mar 2017 10:01AM UTC 0
61.08
Travis Job 67.1
2 67.2 29 Mar 2017 10:03AM UTC 0
61.08
Travis Job 67.2
Source Files on build 67
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #67
  • 3d2f2f52 on github
  • Prev Build on issue-564-ci-poking (#66)
  • Next Build on issue-564-ci-poking (#68)
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