Skip to content

Commit

Permalink
added a new Travis check: validate the RNC schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jul 16, 2015
1 parent bbd35b9 commit bb452f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Expand Up @@ -5,12 +5,18 @@ before_install:
# disable rvm, use system Ruby
- rvm reset
- wget https://raw.githubusercontent.com/yast/yast-devtools/master/travis-tools/travis_setup.sh
- sh ./travis_setup.sh -p "rake yast2-devtools yast2-testsuite yast2 yast2-storage yast2-xml yast2-transfer yast2-services-manager yast2-installation-control yast2-packager" -g "rspec:2.14.1 yast-rake gettext"
- sh ./travis_setup.sh -p "rake yast2-devtools yast2-testsuite yast2 yast2-storage yast2-xml yast2-transfer yast2-services-manager yast2-installation-control yast2-packager trang" -g "rspec:2.14.1 yast-rake gettext"
script:
- rake check:syntax
- rake check:pot
- make -f Makefile.cvs
- make
- sudo make install
- make check
# explicitly check the RNC schema files for errors
# (the files are defined here, but converted in yast2-schema)
- find . -name "*.rnc" -exec trang -I rnc -O rng \{\} \{\}.rng \; 2> trang.log
# grep for "error" in the output, "trang" returns 0 exit status
# even on an error :-(
- grep -i -v -q error trang.log

0 comments on commit bb452f7

Please sign in to comment.