Skip to content

Test coverage with Docker builds #11

Description

@hugovk

Hoisting from python-pillow/Pillow#2761 (comment)

We're not getting coverage from Docker builds.

There's some divergence already with lcov (eg. CentOS 6):

Setting up lcov (1.10-1build1) ...
Setting up libgd-gd2-perl (1:2.46-3.1build1) ...
Capturing coverage data from .
Found gcov version: 4.8.4
Scanning . for .gcda files ...
geninfo: ERROR: no .gcda files found in .!

Versus (eg. native Python 2.7):

Setting up lcov (1.10-1build1) ...
Setting up libgd-gd2-perl (1:2.46-3.1build1) ...
Capturing coverage data from .
Found gcov version: 4.8.4
Scanning . for .gcda files ...
Found 1 data files in .
Processing _webp.gcda
Finished .info-file creation

One thing: Docker and native both run the after_success.sh script (which collates and sends coverage data off) but not install.sh or script.sh (in which Pillow is built with the coverage switch).

Are the Dockers built with lcov/CFLAGS="-coverage"?

Where is the Pillow build defined for Docker?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions