You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Be smarter about which packages are loaded for testing.
Now that our tests are more diversified it makes sense to load only the packages that are needed for each test. Move the package loads from .travis.yaml to test/travis.pl where we have more control over what is loaded.
This commit is contained in:
@@ -104,30 +104,13 @@ sub process
|
||||
|
||||
# Configure install and script
|
||||
$strConfig .=
|
||||
"\n" .
|
||||
"before_install:\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" .
|
||||
" aws configure set region us-east-1\n" .
|
||||
" aws configure set aws_access_key_id accessKey1\n" .
|
||||
" aws configure set aws_secret_access_key verySecretKey1\n" .
|
||||
" aws help --version\n" .
|
||||
" aws configure list\n" .
|
||||
"\n" .
|
||||
"install:\n" .
|
||||
" - |\n" .
|
||||
" # User Configuration\n" .
|
||||
" sudo adduser --ingroup=\${USER?} --uid=5001 --disabled-password --gecos \"\" " . BACKREST_USER . "\n" .
|
||||
" umask 0022\n" .
|
||||
" cd ~ && pwd && whoami && umask && groups\n" .
|
||||
" mv \${TRAVIS_BUILD_DIR?} " . PROJECT_EXE . "\n" .
|
||||
" rm -rf \${TRAVIS_BUILD_DIR?}\n" .
|
||||
" - umask 0022\n" .
|
||||
" - cd ~ && pwd && whoami && umask && groups\n" .
|
||||
"\n" .
|
||||
"script:\n" .
|
||||
" - " . PROJECT_EXE . "/test/travis.pl \${PGB_CI?}\n";
|
||||
" - \${TRAVIS_BUILD_DIR?}/test/travis.pl \${PGB_CI?}\n";
|
||||
|
||||
buildPutDiffers($self->{oStorage}, '.travis.yml', $strConfig);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user