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