Add XML validation in CI
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Lucidiot 2021-10-05 22:17:00 +02:00
parent fdea2666f2
commit 40dac47598
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
6 changed files with 12 additions and 6 deletions

View File

@ -3,6 +3,12 @@ type: docker
name: default
steps:
- name: test
image: alpine
commands:
- apk add libxml2-utils
- xmllint --noout --schema itsb.xsd itsb.xml
- name: deploy
image: drillster/drone-rsync
settings:

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<itsb version="1.0" xmlns="http://tilde.town/~lucidiot/itsb/">
<itsb version="1.0" xmlns="http://tilde.town/~lucidiot/itsb/itsb.xsd">
<section name="about" id="about">
<content>
<![CDATA[
@ -298,7 +298,7 @@
<frequency>100 reports/year</frequency>
<feed lang="French" format="rss" id="bea-rss">
<curl>
<url>https://bea.aero/les-enquetes/evenements-notifies/?tx_news_pi1[action]=searchResult&amp;tx_news_pi1[controller]=News&amp;tx_news_pi1[facetAction]=add&amp;tx_news_pi1[facetTitle]=etat_intS&amp;tx_news_pi1[facetValue]=100&amp;cHash=b4645da2a30ec0c83f60069d018b5619</url>
<url>https://bea.aero/les-enquetes/evenements-notifies/?tx_news_pi1%5Baction%5D=searchResult&amp;tx_news_pi1%5Bcontroller%5D=News&amp;tx_news_pi1%5BfacetAction%5D=add&amp;tx_news_pi1%5BfacetTitle%5D=etat_intS&amp;tx_news_pi1%5BfacetValue%5D=100&amp;cHash=b4645da2a30ec0c83f60069d018b5619</url>
</curl>
<pup>article.search-entry</pup>
<jq path="bea.jq" />

View File

@ -2,7 +2,7 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:itsb="http://tilde.town/~lucidiot/itsb/">
xmlns:itsb="http://tilde.town/~lucidiot/itsb/itsb.xsd">
<xsl:output method="text" />
<xsl:variable name="apos">'</xsl:variable>

View File

@ -2,7 +2,7 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:itsb="http://tilde.town/~lucidiot/itsb/">
xmlns:itsb="http://tilde.town/~lucidiot/itsb/itsb.xsd">
<xsl:output method="html" />
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />

View File

@ -3,7 +3,7 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://tilde.town/~lucidiot/itsb/"
xmlns:itsb="http://tilde.town/~lucidiot/itsb/">
xmlns:itsb="http://tilde.town/~lucidiot/itsb/itsb.xsd">
<xsl:output method="xml" />
<!-- Preprocesses the itsb.xml file to autocomplete with converted feeds. -->

View File

@ -2,7 +2,7 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:itsb="http://tilde.town/~lucidiot/itsb/">
xmlns:itsb="http://tilde.town/~lucidiot/itsb/itsb.xsd">
<xsl:output method="xml" />
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'" />