1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-09-16 09:06:18 +02:00

Ignore apt-get update errors in Travis CI.

Broken vendor packages have been causing builds to break due to an error on apt-get update.

Ignore errors and proceed directory to apt-get install.  It's possible that we'll try to reference an expired package version and get an error anyway, but that seems better than a guaranteed hard error.
This commit is contained in:
David Steele
2019-09-12 15:16:42 -04:00
parent 506c10f7f2
commit f809d2f008
2 changed files with 4 additions and 3 deletions

View File

@@ -19,7 +19,8 @@ env:
- PGB_CI="--vm=u12 test"
before_install:
- sudo apt-get -qq update && sudo apt-get install libxml-checker-perl libdbd-pg-perl libyaml-libyaml-perl python-pip lcov libperl-dev
- sudo apt-get -qq update || true
- sudo apt-get install libxml-checker-perl libdbd-pg-perl libyaml-libyaml-perl python-pip lcov libperl-dev
- |
# Install & Configure AWS CLI
pip install --upgrade --user awscli

View File

@@ -100,8 +100,8 @@ sub process
$strConfig .=
"\n" .
"before_install:\n" .
" - sudo apt-get -qq update && sudo apt-get install libxml-checker-perl libdbd-pg-perl libyaml-libyaml-perl python-pip" .
" lcov libperl-dev\n" .
" - sudo apt-get -qq update || true\n" .
" - sudo apt-get install libxml-checker-perl libdbd-pg-perl libyaml-libyaml-perl python-pip lcov libperl-dev\n" .
" - |\n" .
" # Install & Configure AWS CLI\n" .
" pip install --upgrade --user awscli\n" .