From 733041e865cefd633bcd05c1edd3a61c7ac54727 Mon Sep 17 00:00:00 2001 From: Dave Lambley Date: Thu, 12 Dec 2019 12:30:05 +0000 Subject: [PATCH 1/2] Ask for postgres Builds in Travis currently fail with The command "psql -U postgres -c 'create database sqlt_test;'" failed and exited with 2 during . https://travis-ci.org/davel/sql-translator/jobs/624123545 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 50ba152bf..497d09874 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,3 +45,5 @@ before_script: - psql -U postgres -c 'create database sqlt_test;' script: - perl Makefile.PL && make test +services: + - postgresql From d05976bfcb4d8c6ba757746ae045d396a5f31125 Mon Sep 17 00:00:00 2001 From: Dave Lambley Date: Thu, 12 Dec 2019 13:05:03 +0000 Subject: [PATCH 2/2] Allow test data to be generated on second run When Makefile.PL is run the second time, after dependencies have been installed, it does not generate the test data, and so the run fails with, https://travis-ci.org/davel/sql-translator/jobs/624129330 This only seems to happen on perl 5.16 and 5.18. --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 70080cbc1..f33b69e4d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -3,7 +3,7 @@ use warnings; use ExtUtils::MakeMaker; use File::ShareDir::Install; do './maint/Makefile.PL.include' or die $@ - unless -f 'META.yml'; + unless -f 'META.yml' && -f 't/data/roundtrip_autogen.yaml'; my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; my %eumm_args = (