2017-02-21 15:59:23 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- integration
|
|
|
|
- /-ci$/
|
|
|
|
|
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
|
|
|
|
|
|
|
# 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
|
|
|
|
2020-03-27 04:00:40 +02:00
|
|
|
# All unit tests (with coverage) on the newest gcc available
|
|
|
|
- env: PGB_CI="test --vm=f30 --param=c-only --param=no-performance"
|
|
|
|
|
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-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
|
|
|
|
|
|
|
# Performance tests and unit tests (with coverage) run without a container in a non-UTC timezone
|
2019-10-08 18:06:30 +02:00
|
|
|
- dist: bionic
|
2019-10-15 17:19:42 +02:00
|
|
|
env:
|
2019-12-12 05:11:04 +02:00
|
|
|
- PGB_CI="test --vm=none --param=tz=America/New_York"
|
2019-10-10 17:28:37 +02:00
|
|
|
services:
|
2020-03-27 03:39:40 +02:00
|
|
|
|
2020-03-27 04:00:40 +02:00
|
|
|
# All integration tests
|
|
|
|
- env: PGB_CI="test --vm=co7 --param=build-package --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
|
|
|
|
|
|
|
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?}
|