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

all3fox / scancode-toolkit / 72
76%
develop: 76%

Build:
Build:
LAST BUILD BRANCH: travis-ci
DEFAULT BRANCH: develop
Ran 29 Mar 2017 10:24PM UTC
Jobs 2
Files 90
Run time 36min
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
72

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

7756 of 10204 relevant lines covered (76.01%)

1.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 72.1 29 Mar 2017 10:24PM UTC 0
75.97
Travis Job 72.1
2 72.2 29 Mar 2017 11:00PM UTC 0
75.65
Travis Job 72.2
Source Files on build 72
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #72
  • d7c4f8c3 on github
  • Prev Build on issue-564-ci (#69)
  • Next Build on issue-564-ci (#73)
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