From 2aa6c2ff4f24c77b0257a21a23d39c45d7992b39 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 9 Apr 2018 11:35:19 -0400 Subject: [PATCH 01/10] Test multiple perl versions --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 327e260d03..af9ee165db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,11 @@ sudo: false language: generic +env: + - PERL_VERSION="5.24" + - PERL_VERSION="5.22" + - PERL_VERSION="5.20" + - PERL_VERSION="5.18" + - PERL_VERSION="5.16" addons: apt: packages: @@ -7,6 +13,7 @@ addons: - libxml-libxml-perl - libxml-libxslt-perl script: +- perlbrew use "$PERL_VERSION" - xmllint --noout df.*.xml symbols.xml - perl ./codegen.pl | tee codegen-out.txt - if grep -i error codegen-out.txt; then false; else true; fi From be9ecd0957637784f0238edd0d2bccf86dde9651 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 19:25:11 -0500 Subject: [PATCH 02/10] Specify travis perl versions differently --- .travis.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index af9ee165db..aab2027d86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ sudo: false language: generic -env: - - PERL_VERSION="5.24" - - PERL_VERSION="5.22" - - PERL_VERSION="5.20" - - PERL_VERSION="5.18" - - PERL_VERSION="5.16" +perl: + - "5.30" + - "5.28" + - "5.24" + - "5.20" + - "5.16" addons: apt: packages: @@ -13,7 +13,6 @@ addons: - libxml-libxml-perl - libxml-libxslt-perl script: -- perlbrew use "$PERL_VERSION" - xmllint --noout df.*.xml symbols.xml - perl ./codegen.pl | tee codegen-out.txt - if grep -i error codegen-out.txt; then false; else true; fi From 466a19a2e1b03694759d0fa149a4583621768f5e Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 19:27:13 -0500 Subject: [PATCH 03/10] language: perl --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index aab2027d86..3e9efeff07 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ sudo: false -language: generic +language: perl perl: - "5.30" - "5.28" From 1e81df6b4d805e7d8957f43985307d6907079627 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 19:31:22 -0500 Subject: [PATCH 04/10] Switch back to perlbrew --- .travis.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3e9efeff07..fca88fb41b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ sudo: false -language: perl -perl: - - "5.30" - - "5.28" - - "5.24" - - "5.20" - - "5.16" +language: generic +env: + - PERL_VERSION="5.24" + - PERL_VERSION="5.22" + - PERL_VERSION="5.20" + - PERL_VERSION="5.18" + - PERL_VERSION="5.16" addons: apt: packages: @@ -13,6 +13,8 @@ addons: - libxml-libxml-perl - libxml-libxslt-perl script: +- perlbrew install "$PERL_VERSION" +- perlbrew use "$PERL_VERSION" - xmllint --noout df.*.xml symbols.xml - perl ./codegen.pl | tee codegen-out.txt - if grep -i error codegen-out.txt; then false; else true; fi From 04e95c26aba35190a183fdb54f4323a3f398e761 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 19:44:39 -0500 Subject: [PATCH 05/10] Try installing perlbrew manually --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index fca88fb41b..f522380691 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ addons: - libxml-libxml-perl - libxml-libxslt-perl script: +- curl -L https://install.perlbrew.pl | bash - perlbrew install "$PERL_VERSION" - perlbrew use "$PERL_VERSION" - xmllint --noout df.*.xml symbols.xml From ed2692b1c2bf052b20b7f33d73e243167fe05a27 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 19:47:09 -0500 Subject: [PATCH 06/10] debug --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index f522380691..18cca9827f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,11 @@ addons: - libxml-libxml-perl - libxml-libxslt-perl script: +- which -a perlbrew +- perlbrew --version - curl -L https://install.perlbrew.pl | bash +- which -a perlbrew +- perlbrew --version - perlbrew install "$PERL_VERSION" - perlbrew use "$PERL_VERSION" - xmllint --noout df.*.xml symbols.xml From d43f27119ea510c6cea3b7969abafa10e4e2c1e6 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 19:56:52 -0500 Subject: [PATCH 07/10] Try docker --- .travis.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 18cca9827f..97c8a5c6d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ sudo: false language: generic +services: + - docker env: - PERL_VERSION="5.24" - PERL_VERSION="5.22" @@ -13,15 +15,8 @@ addons: - libxml-libxml-perl - libxml-libxslt-perl script: -- which -a perlbrew -- perlbrew --version -- curl -L https://install.perlbrew.pl | bash -- which -a perlbrew -- perlbrew --version -- perlbrew install "$PERL_VERSION" -- perlbrew use "$PERL_VERSION" - xmllint --noout df.*.xml symbols.xml -- perl ./codegen.pl | tee codegen-out.txt +- docker run --rm -v .:/xml perl:${PERL_VERSION}-slim perl /xml/codegen.pl | tee codegen-out.txt - if grep -i error codegen-out.txt; then false; else true; fi notifications: email: false From 2abb3275fe8701a2ccad52b413c17c62823743fd Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 20:19:11 -0500 Subject: [PATCH 08/10] Fix volume mount --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 97c8a5c6d7..fc6d11c277 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ addons: - libxml-libxslt-perl script: - xmllint --noout df.*.xml symbols.xml -- docker run --rm -v .:/xml perl:${PERL_VERSION}-slim perl /xml/codegen.pl | tee codegen-out.txt +- set -o pipefail; docker run --rm -v $PWD:/xml perl:${PERL_VERSION}-slim perl /xml/codegen.pl | tee codegen-out.txt - if grep -i error codegen-out.txt; then false; else true; fi notifications: email: false From 62a0d4ec177892c66b859cc0bd67b6828cc94f11 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 20:28:25 -0500 Subject: [PATCH 09/10] Separate container entrypoint --- .travis.yml | 6 +++--- travis/run-codegen.bash | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 travis/run-codegen.bash diff --git a/.travis.yml b/.travis.yml index fc6d11c277..02e59129bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,10 @@ language: generic services: - docker env: + - PERL_VERSION="5.30" + - PERL_VERSION="5.28" - PERL_VERSION="5.24" - - PERL_VERSION="5.22" - PERL_VERSION="5.20" - - PERL_VERSION="5.18" - PERL_VERSION="5.16" addons: apt: @@ -16,7 +16,7 @@ addons: - libxml-libxslt-perl script: - xmllint --noout df.*.xml symbols.xml -- set -o pipefail; docker run --rm -v $PWD:/xml perl:${PERL_VERSION}-slim perl /xml/codegen.pl | tee codegen-out.txt +- docker run --rm -v $PWD:/xml -v ./travis/run-codegen.bash:/run-codegen.bash -v ./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 From b9160c1c915ca6b441b4451f7a78b07ef72fe12f Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 24 Feb 2020 20:30:47 -0500 Subject: [PATCH 10/10] Use absolute paths --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 02e59129bb..941b316e22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ addons: - libxml-libxslt-perl script: - xmllint --noout df.*.xml symbols.xml -- docker run --rm -v $PWD:/xml -v ./travis/run-codegen.bash:/run-codegen.bash -v ./codegen-out.txt:/out.txt perl:${PERL_VERSION}-slim bash /run-codegen.bash +- 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