Skip to content

Travisify.sh: no repoSlug on Windows (GitBash) #15

Description

@imagejan

I had a chance trying travisify.sh on my Windows system (using GitBash/MINGW64), and it errors out with:

[ERROR] Could not determine GitHub repository slug

because this line:

repoSlug=$(xmllint --xpath "//*[local-name()='project']/*[local-name()='scm']/*[local-name()='connection']" pom.xml|sed 's_.*github.com[:/]\(.*\)<.*_\1_')

or more precisely this command:

 xmllint --xpath "//*[local-name()='project']/*[local-name()='scm']/*[local-name()='connection']" pom.xml

gives:

XPath set is empty

although the pom.xml contains a project/scm/connection object.
(This was tested with the pom.xml of our https://github.com/fmi-faim/fmi-ij2-plugins/ repo.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions