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

all3fox / scancode-toolkit
84%
develop: 76%

Build:
Build:
LAST BUILD BRANCH: travis-ci
DEFAULT BRANCH: develop
Repo Added 27 Mar 2017 12:21AM UTC
Files 87
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

LAST BUILD ON BRANCH issue-564-ci-poking
branch: issue-564-ci-poking
CHANGE BRANCH
x
Reset
  • issue-564-ci-poking
  • develop
  • issue-564-ci
  • travis-ci

pending completion
71

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

726 of 869 relevant lines covered (83.54%)

1.63 hits per line

Relevant lines Covered
Build:
Build:
869 RELEVANT LINES 726 COVERED LINES
1.63 HITS PER LINE
Source Files on issue-564-ci-poking
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
71 issue-564-ci-poking 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 co... push 29 Mar 2017 10:08PM UTC all3fox travis-ci pending completion  
68 issue-564-ci-poking 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 co... push 29 Mar 2017 10:21AM UTC all3fox travis-ci pending completion  
67 issue-564-ci-poking 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 co... push 29 Mar 2017 10:01AM UTC all3fox travis-ci pending completion  
66 issue-564-ci-poking 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 co... push 29 Mar 2017 10:00AM UTC all3fox travis-ci pending completion  
56 issue-564-ci-poking 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 co... push 28 Mar 2017 05:08PM UTC all3fox travis-ci pending completion  
50 issue-564-ci-poking Change .travis.yml to enable test coverage reports * Change pytest commands in matrix to actually collect coverage * Add after_success function that reports coverage to coveralls.io Finally, `pytest-cov` and `coveralls` are not directly bundled ... push 28 Mar 2017 04:30PM UTC all3fox travis-ci pending completion  
48 issue-564-ci-poking Change .travis.yml to enable test coverage reports * Change pytest commands in matrix to actually collect coverage * Add after_success function that reports coverage to coveralls.io Finally, `pytest-cov` and `coveralls` are not directly bundled ... push 28 Mar 2017 04:14PM UTC all3fox travis-ci pending completion  
46 issue-564-ci-poking Change .travis.yml to enable test coverage reports * Change pytest commands in matrix to actually collect coverage * Add after_success function that reports coverage to coveralls.io Finally, `pytest-cov` and `coveralls` are not directly bundled ... push 28 Mar 2017 04:01PM UTC all3fox travis-ci pending completion  
44 issue-564-ci-poking Change .travis.yml to enable test coverage reports * Change pytest commands in matrix to actually collect coverage * Add after_success function that reports coverage to coveralls.io Finally, `pytest-cov` and `coveralls` are not directly bundled ... push 28 Mar 2017 03:49PM UTC all3fox travis-ci pending completion  
42 issue-564-ci-poking Change .travis.yml to enable test coverage reports * Change pytest commands in matrix to actually collect coverage * Add after_success function that reports coverage to coveralls.io Finally, `pytest-cov` and `coveralls` are not directly bundled ... push 28 Mar 2017 03:42PM UTC all3fox travis-ci pending completion  
See All Builds (33)
  • Repo on GitHub
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

© 2025 Coveralls, Inc