Skip to content

Commit

Permalink
Test: travis: refrain from relying on (and bothering) relaxng.org host
Browse files Browse the repository at this point in the history
We will cache relaxng.rng file using the respective Travis CI facility.
Note that we really don't need to ship that file with pacemaker itself,
plus it would be one more license to care about if we borrowed that
file from BSD-covered jing-trang project:
https://github.com/relaxng/jing-trang/blob/master/eg/relaxng.rng
So we rather stay sole user of that file than redistributor...
  • Loading branch information
jnpkrn committed Aug 24, 2018
1 parent 541b432 commit 7ed41ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Expand Up @@ -34,6 +34,10 @@ env:

# -- END Coverity Scan ENV

cache:
directories:
- xml/.relaxng.org

# sudo add-apt-repository ppa:hotot-team
before_install:
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main"
Expand Down Expand Up @@ -99,7 +103,10 @@ script:
schemas=; for schema in *.rng; do
case ${schema} in *cibtr*);; *)schemas="${schemas} ${schema}";; esac;
done;
xmllint --noout --relaxng 'http://relaxng.org/relaxng.rng' ${schemas};
test -s .relaxng.org/relaxng.rng 2>/dev/null
|| curl --create-dirs -Lo .relaxng.org/relaxng.rng
'http://relaxng.org/relaxng.rng';
xmllint --noout --relaxng .relaxng.org/relaxng.rng ${schemas};
}
);
}
Expand Down

0 comments on commit 7ed41ff

Please sign in to comment.