From a07f2b3611d1c17ce889556e791c2487730fdbc1 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 2 Aug 2020 08:47:09 -0400 Subject: [PATCH] Travis: Force CPAN mirror to avoid false failures. --- ci/travis-install.bash | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ci/travis-install.bash b/ci/travis-install.bash index f4c89c9bd..730831f9d 100755 --- a/ci/travis-install.bash +++ b/ci/travis-install.bash @@ -80,23 +80,20 @@ elif [ "$TRAVIS_BUILD_STAGE_NAME" = "test" ]; then if [ "$M32" = 1 ]; then sudo apt-get install lib32z1-dev gcc-multilib g++-multilib fi - yes yes | sudo cpan -fi Unix::Processors Parallel::Forker - # Not listing Bit::Vector as slow to install, and only skips one test - install-vcddiff elif [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update # brew cask install gtkwave # fst2vcd hangs at launch, so don't bother brew install ccache perl - yes yes | sudo cpan -fi Unix::Processors Parallel::Forker - install-vcddiff elif [ "$TRAVIS_OS_NAME" = "freebsd" ]; then # fst2vcd fails with "Could not open '', exiting." sudo pkg install -y ccache gmake perl5 python3 - yes yes | sudo cpan -fi Unix::Processors Parallel::Forker - install-vcddiff else fatal "Unknown os: '$TRAVIS_OS_NAME'" fi + # Common installs + # Not listing Bit::Vector as slow to install, and only skips one test + yes yes | sudo cpan -M https://cpan.org -fi Unix::Processors Parallel::Forker + install-vcddiff else ############################################################################## # Unknown build stage