Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Don't assume the location of PHPUnit coverage reports #323

@kasparsd

Description

@kasparsd

In

if [ -n "$TRAVIS_PHPUNIT_CONFIG" ]; then
phpunit $( if [ -n "$TRAVIS_PHPUNIT_CONFIG" ]; then echo -c "$TRAVIS_PHPUNIT_CONFIG"; fi ) $(coverage_clover)
elif [ -n "$PHPUNIT_CONFIG" ]; then
phpunit $( if [ -n "$PHPUNIT_CONFIG" ]; then echo -c "$PHPUNIT_CONFIG"; fi ) $(coverage_clover)
else
for project in $( find_phpunit_dirs ); do
(
cd "$project"
phpunit --stop-on-failure $( if [ "$project" == "$INITIAL_DIR" ]; then coverage_clover; fi )
)
done
fi
cd "$PROJECT_DIR"
we pass $(coverage_clover) which is equal to --coverage-clover build/logs/clover.xml if can_generate_coverage_clover returns 1 which is the case whenever a Coveralls config file is found in the project root and coverage task is enabled.

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