1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/.travis.yml
David Steele f809d2f008 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.
2019-09-12 15:16:42 -04:00

44 lines
992 B
YAML

branches:
only:
- integration
- /-ci$/
dist: trusty
sudo: required
language: c
services:
- docker
env:
- PGB_CI="doc"
- PGB_CI="--vm=u18 test"
- PGB_CI="--vm=co6 test"
- PGB_CI="--vm=co7 test"
- PGB_CI="--vm=u12 test"
before_install:
- 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
aws configure set region us-east-1
aws configure set aws_access_key_id accessKey1
aws configure set aws_secret_access_key verySecretKey1
aws help --version
aws configure list
install:
- |
# User Configuration
sudo adduser --ingroup=${USER?} --uid=5001 --disabled-password --gecos "" pgbackrest
umask 0022
cd ~ && pwd && whoami && umask && groups
mv ${TRAVIS_BUILD_DIR?} pgbackrest
rm -rf ${TRAVIS_BUILD_DIR?}
script:
- pgbackrest/test/travis.pl ${PGB_CI?}