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

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

Build:
Build:
LAST BUILD BRANCH: travis-ci
DEFAULT BRANCH: develop
Ran 28 Mar 2017 05:08PM UTC
Jobs 12
Files 90
Run time 12min
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
56

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

7739 of 10204 relevant lines covered (75.84%)

2.01 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/scancode/cli.py
16
100.0
src/scancode/api.py
Jobs
ID Job ID Ran Files Coverage
1 56.1 (TEST_SUITE="pytest -n 2 -vvs --cov=src --ignore=tests/scancode --ignore=tests/extractcode --ignore=tests/licensedcode --ignore=tests/cluecode --ignore=tests/packagedcode") 28 Mar 2017 05:08PM UTC 0
41.7
Travis Job 56.1
2 56.2 (TEST_SUITE="bin/pytest -n 2 -vvs --cov=src/scancode tests/scancode") 28 Mar 2017 05:09PM UTC 0
81.7
Travis Job 56.2
3 56.3 (TEST_SUITE="pytest -n 2 -vvs --cov=src/extractcode tests/extractcode") 28 Mar 2017 05:10PM UTC 0
61.08
Travis Job 56.3
4 56.4 (TEST_SUITE="pytest -n 2 -s --cov=src/licensedcode tests/licensedcode") 28 Mar 2017 05:13PM UTC 0
81.08
Travis Job 56.4
5 56.5 (TEST_SUITE="pytest -n 2 -s --cov=src/cluecode tests/cluecode") 28 Mar 2017 05:14PM UTC 0
93.93
Travis Job 56.5
6 56.6 (TEST_SUITE="pytest -n 2 -s --cov=src/packagedcode tests/packagedcode") 28 Mar 2017 05:10PM UTC 0
84.09
Travis Job 56.6
8 56.8 (TEST_SUITE="pytest -n 2 -vvs --cov=src --ignore=tests/scancode --ignore=tests/extractcode --ignore=tests/licensedcode --ignore=tests/cluecode --ignore=tests/packagedcode") 28 Mar 2017 05:13PM UTC 0
41.7
Travis Job 56.8
9 56.9 (TEST_SUITE="bin/pytest -n 2 -vvs --cov=src/scancode tests/scancode") 28 Mar 2017 05:13PM UTC 0
81.36
Travis Job 56.9
10 56.10 (TEST_SUITE="pytest -n 2 -vvs --cov=src/extractcode tests/extractcode") 28 Mar 2017 05:14PM UTC 0
61.08
Travis Job 56.10
11 56.11 (TEST_SUITE="pytest -n 2 -s --cov=src/licensedcode tests/licensedcode") 28 Mar 2017 05:21PM UTC 0
81.08
Travis Job 56.11
12 56.12 (TEST_SUITE="pytest -n 2 -s --cov=src/cluecode tests/cluecode") 28 Mar 2017 05:21PM UTC 0
93.93
Travis Job 56.12
13 56.13 (TEST_SUITE="pytest -n 2 -s --cov=src/packagedcode tests/packagedcode") 28 Mar 2017 05:15PM UTC 0
84.09
Travis Job 56.13
Source Files on build 56
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #56
  • 1de1067f on github
  • Prev Build on issue-564-ci-poking (#50)
  • Next Build on issue-564-ci-poking (#66)
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