commit: ea5b6de5bab084b9fc10d71a7f0ea3bbd9ae022c
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 6 20:52:01 2016 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Mar 6 20:52:01 2016 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ea5b6de5
Travis: validate metadata.xml
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
.travis.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index 93e3091..cd953b7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,9 @@ python:
- pypy
env:
- PORTAGE_VER="2.2.27"
+before_install:
+ - sudo apt-get -qq update
+ - sudo apt-get install -y libxml2
before_script:
- mkdir travis-overlay
- mv !(travis-overlay) travis-overlay/
@@ -32,6 +35,9 @@ script:
- ./../spinner.sh "python ../portage-${PORTAGE_VER}/bin/repoman full -d"
# You can append own scripts after this line
+ - wget
"https://raw.githubusercontent.com/mgorny/gentoo-xml-schema/master/metadata.xsd"
-O metadata.xsd
+ - xmllint --noout --schema metadata.xsd */*/metadata.xml 2>&1 | grep
"fails to validate"; [[ ${PIPESTATUS[0]} -gt 0 ]] && exit 1
+
notifications:
irc: "chat.freenode.net#gentoo-science"