mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
45881c74ae
Three major changes were required to get this working: 1) Provide the path to pgbackrest in the build directory when running outside a container. Tests in a container will continue to install and run against /usr/bin/pgbackrest. 1) Set a per-test lock path so tests don't conflict on the default /tmp/pgbackrest path. Also set a per-test log-path while we are at it. 2) Use localhost instead of a custom host for TLS test connections. Tests in containers will continue to update /etc/hosts and use the custom host. Add infrastructure and update harnessCfgLoad*() to get the correct exe and paths loaded for testing. Since new tests are required to verify that running outside a container works, also rework the tests in Travis CI to provide coverage within a reasonable amount of time. Mainly, break up to doc tests by VM and run an abbreviated unit test suite on co6 and co7.
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
branches:
|
|
only:
|
|
- integration
|
|
- /-ci$/
|
|
|
|
dist: trusty
|
|
sudo: required
|
|
|
|
language: c
|
|
|
|
services:
|
|
- docker
|
|
|
|
matrix:
|
|
include:
|
|
- env: PGB_CI="--vm=u12 test"
|
|
- env: PGB_CI="--vm=co6 test"
|
|
- env: PGB_CI="--vm=co7 test"
|
|
- env: PGB_CI="--vm=u18 test"
|
|
- env: PGB_CI="--vm=u18 doc"
|
|
- dist: bionic
|
|
env: PGB_CI="--vm=none test"
|
|
- env: PGB_CI="--vm=co7 doc"
|
|
- env: PGB_CI="--vm=co6 doc"
|
|
|
|
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?}
|