2017-02-21 15:59:23 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- integration
|
|
|
|
- /-ci$/
|
|
|
|
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2017-06-23 00:13:59 +02:00
|
|
|
group: deprecated-2017Q2
|
2017-02-21 15:59:23 +02:00
|
|
|
|
|
|
|
language: c
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
env:
|
2017-06-21 22:07:13 +02:00
|
|
|
- PGB_TEST_VM="co6" PGB_TEST_PARAM=""
|
|
|
|
- PGB_TEST_VM="u16" PGB_TEST_PARAM=" --no-lint"
|
|
|
|
- PGB_TEST_VM="d8" PGB_TEST_PARAM=" --no-lint"
|
|
|
|
- PGB_TEST_VM="co7" PGB_TEST_PARAM=" --no-lint"
|
|
|
|
- PGB_TEST_VM="u14" PGB_TEST_PARAM=" --no-lint"
|
2017-02-21 15:59:23 +02:00
|
|
|
|
|
|
|
before_install:
|
2017-06-09 23:51:41 +02:00
|
|
|
- sudo apt-get -qq update && sudo apt-get install libxml-checker-perl libdbd-pg-perl libperl-critic-perl libtemplate-perl libpod-coverage-perl libtest-differences-perl libhtml-parser-perl lintian debhelper txt2man devscripts libjson-perl libio-socket-ssl-perl libxml-libxml-perl python-pip
|
2017-06-12 16:52:32 +02:00
|
|
|
- |
|
|
|
|
# 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
|
2017-06-09 23:51:41 +02:00
|
|
|
- |
|
|
|
|
# Build Devel::Cover
|
|
|
|
git clone https://anonscm.debian.org/git/pkg-perl/packages/libdevel-cover-perl.git ~/libdevel-cover-perl
|
|
|
|
cd ~/libdevel-cover-perl && git checkout debian/1.23-2 && debuild -i -us -uc -b
|
|
|
|
sudo dpkg -i ~/libdevel-cover-perl_1.23-2_amd64.deb
|
|
|
|
/usr/bin/cover -v
|
2017-02-21 15:59:23 +02:00
|
|
|
|
|
|
|
install:
|
2017-06-09 23:51:41 +02:00
|
|
|
- |
|
|
|
|
# User Configuration
|
|
|
|
sudo adduser --ingroup=${USER?} --disabled-password --gecos "" backrest
|
|
|
|
umask 0022
|
|
|
|
cd ~ && pwd && whoami && umask && groups
|
|
|
|
mv ${TRAVIS_BUILD_DIR?} pgbackrest
|
|
|
|
rm -rf ${TRAVIS_BUILD_DIR?}
|
2017-06-21 22:07:13 +02:00
|
|
|
- pgbackrest/test/test.pl --vm-build --vm=${PGB_TEST_VM?}
|
2017-02-21 15:59:23 +02:00
|
|
|
|
|
|
|
script:
|
2017-06-22 01:21:16 +02:00
|
|
|
- pgbackrest/test/test.pl --vm-max=2 --vm-host=u14 --vm=${PGB_TEST_VM?} ${PGB_TEST_PARAM?}
|