diff --git a/.travis.yml b/.travis.yml index 327e260d03..941b316e22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,13 @@ sudo: false language: generic +services: + - docker +env: + - PERL_VERSION="5.30" + - PERL_VERSION="5.28" + - PERL_VERSION="5.24" + - PERL_VERSION="5.20" + - PERL_VERSION="5.16" addons: apt: packages: @@ -8,7 +16,7 @@ addons: - libxml-libxslt-perl script: - xmllint --noout df.*.xml symbols.xml -- perl ./codegen.pl | tee codegen-out.txt +- docker run --rm -v $PWD:/xml -v $PWD/travis/run-codegen.bash:/run-codegen.bash -v $PWD/codegen-out.txt:/out.txt perl:${PERL_VERSION}-slim bash /run-codegen.bash - if grep -i error codegen-out.txt; then false; else true; fi notifications: email: false diff --git a/travis/run-codegen.bash b/travis/run-codegen.bash new file mode 100755 index 0000000000..868018ab9d --- /dev/null +++ b/travis/run-codegen.bash @@ -0,0 +1,5 @@ +#!/bin/bash +set -ex -o pipefail +export PERL_MM_USE_DEFAULT=1 +cpan install XML::LibXML XML::LibXSLT +perl /xml/codegen.pl | tee /out.txt