scijava / scijava-scripts

Shell scripts for scientific projects written in Java
The Unlicense
15 stars 16 forks source link

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

Closed imagejan closed 7 years ago

imagejan commented 7 years ago

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:

https://github.com/scijava/scijava-scripts/blob/cbc3ed2e729f5bd1aa94272b6223e9c2afdaa3b9/travisify.sh#L69

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.)