For Ubuntu:
xmlstarlet command works for mexml doesn't workIn documentation (1, 2) only xml command, that doesn't work in Ubuntu users.
Ubuntu users may not understand, that xmllint, not xml correct.
See simple configuration on SashaXMLStarlet branch of my demo repository.
I have valid XML file SashaXML.xml with any content.
addons:
apt:
packages:
- xmlstarlet
language: bash
script:
- xmlstarlet val SashaXML.xml
- xml val SashaXML.xml
xmlstarlet val SashaXML.xml
xml val SashaXML.xml
$ xmlstarlet val SashaXML.xml
SashaXML.xml - valid
The command "xmlstarlet val SashaXML.xml" exited with 0.
0.12s$ xml val SashaXML.xml
No command 'xml' found, did you mean:
Command 'xmj' from package 'mah-jong' (universe)
Command 'xl' from package 'xen-utils-common' (universe)
Command 'qml' from package 'qtchooser' (main)
Command 'wml' from package 'wml' (universe)
Command 'sml' from package 'smlnj' (universe)
Command 'xmp' from package 'xmp' (universe)
Command '2xml' from package 'xml2' (universe)
Command 'xm' from package 'xen-utils-common' (universe)
Command 'xml2' from package 'xml2' (universe)
xml: command not found
The command "xml val SashaXML.xml" exited with 127.
Thanks.