Skip to content

Allow specifying base path #14

@dominics

Description

@dominics

We've just migrated our CI system to one that uses build artifacting. As a consequence, when we run our unit tests, we're no longer doing so within a Git repository.

Most of UploadCommand is careful not to assume the current dir is a repository, and we can specify --repository, --parent and --revision manually. However, the ->getBasePath() call assumes one of the parents of the working directory will have a .git directory (here: https://github.com/scrutinizer-ci/ocular/blob/master/src/Scrutinizer/Ocular/Command/CodeCoverage/UploadCommand.php#L106) and there's no way to override this strategy.

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