2017-02-21 15:59:23 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- integration
|
|
|
|
- /-ci$/
|
2020-05-06 16:23:42 +02:00
|
|
|
- /-cit$/
|
2017-02-21 15:59:23 +02:00
|
|
|
|
2020-03-27 03:16:21 +02:00
|
|
|
os: linux
|
2017-02-21 15:59:23 +02:00
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2020-03-27 03:16:21 +02:00
|
|
|
jobs:
|
2020-03-27 03:39:40 +02:00
|
|
|
# The first five jobs should be the canaries in the coal mine, i.e. the most likely to fail if there are problems in the code.
|
|
|
|
# They should also be a good mix of unit, integration, and documentation tests.
|
|
|
|
#
|
|
|
|
# In general tests should be ordered from slowest to fastest for the first five jobs (the maximum concurrent jobs allowed), then
|
|
|
|
# slowest to fastest for the rest of the tests. This does not make a difference for testing a single commit, but when multiple
|
|
|
|
# commits are being tested it is best to have the slowest jobs first so that as jobs become available they will tackle the slowest
|
|
|
|
# tests first.
|
2019-10-08 18:06:30 +02:00
|
|
|
include:
|
2020-03-27 03:39:40 +02:00
|
|
|
# All unit (without coverage) and integration tests for 32-bit
|
2020-03-27 02:36:09 +02:00
|
|
|
- env: PGB_CI="test --vm=u12 --param=no-performance"
|
2020-03-27 03:39:40 +02:00
|
|
|
|
2020-03-27 04:00:40 +02:00
|
|
|
# Debian/Ubuntu documentation
|
|
|
|
- env: PGB_CI=" doc --vm=u18"
|
2020-03-27 03:39:40 +02:00
|
|
|
|
2020-05-11 16:10:22 +02:00
|
|
|
# Valgrind is disabled due to some platform-specific issues in getpwuid() and getgrgid() that do not seem to be pgBackRest bugs.
|
|
|
|
# Run in a different timezone to check time tests.
|
2020-05-19 01:55:09 +02:00
|
|
|
- arch: ppc64le
|
2020-05-11 16:10:22 +02:00
|
|
|
dist: bionic
|
|
|
|
env:
|
|
|
|
- PGB_CI="test --vm=none --param=no-valgrind --param=tz=America/New_York"
|
|
|
|
services:
|
|
|
|
|
2020-03-27 03:39:40 +02:00
|
|
|
# All integration tests
|
2020-03-14 20:35:09 +02:00
|
|
|
- env: PGB_CI="test --vm=co6 --param=build-package --param=module=mock --param=module=real"
|
2020-03-27 03:39:40 +02:00
|
|
|
|
|
|
|
# All integration tests
|
2020-03-26 18:16:22 +02:00
|
|
|
- env: PGB_CI="test --vm=u18 --param=build-package --param=module=mock --param=module=real"
|
2020-03-27 03:39:40 +02:00
|
|
|
|
2020-05-11 16:10:22 +02:00
|
|
|
# All unit tests (with coverage) on the newest gcc available
|
|
|
|
- env: PGB_CI="test --vm=f32 --param=c-only --param=no-performance"
|
|
|
|
|
2020-03-27 04:00:40 +02:00
|
|
|
# RHEL/CentOS 6 documentation
|
|
|
|
- env: PGB_CI=" doc --vm=co6"
|
2020-03-27 03:39:40 +02:00
|
|
|
|
2020-03-27 04:00:40 +02:00
|
|
|
# All integration tests
|
2020-05-15 00:27:26 +02:00
|
|
|
- env: PGB_CI="test --vm=co7 --param=module=mock --param=module=real"
|
2020-03-27 03:39:40 +02:00
|
|
|
|
|
|
|
# RHEL/CentOS 7 documentation
|
2019-10-15 17:19:42 +02:00
|
|
|
- env: PGB_CI=" doc --vm=co7"
|
2017-02-21 15:59:23 +02:00
|
|
|
|
2020-05-11 16:10:22 +02:00
|
|
|
# Basic unit tests only because arm64 is slow. Coverage testing is also disabled to save time.
|
|
|
|
- arch: arm64
|
|
|
|
dist: bionic
|
|
|
|
env:
|
|
|
|
- PGB_CI="test --vm=none --param=no-coverage --param=module=command --param=module=storage"
|
|
|
|
services:
|
|
|
|
|
2017-02-21 15:59:23 +02:00
|
|
|
install:
|
2019-10-13 20:02:52 +02:00
|
|
|
- umask 0022 && cd ~ && pwd && whoami && umask && groups
|
|
|
|
- df -Th && top -bn1
|
2017-02-21 15:59:23 +02:00
|
|
|
|
|
|
|
script:
|
2019-10-09 00:56:55 +02:00
|
|
|
- ${TRAVIS_BUILD_DIR?}/test/travis.pl ${PGB_CI?}
|