1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/.travis.yml
David Steele d01669aa58 Move most tests to Github Actions.
Testing on Travis-CI has been getting slower (from ~18 minutes to 3-6 hours) and the travis-ci.org service will be terminated at the end of the year. Moving to travis-ci.com is an option but the quotas are too low for our purposes.

Instead use Github Actions, which does not currently have quotas, and runs our current tests with just a few tweaks.

This still leaves multi-architecture tests on Travis-CI but we may be able to run those and stay within the new quotas.

Also fix a minor bug in restoreTest.c exposed by Github Actions using a different name for the user and group.
2020-12-09 15:19:01 -05:00

38 lines
950 B
YAML

branches:
only:
- integration
- /-ci$/
- /-cit$/
os: linux
dist: bionic
language: c
jobs:
# Run unit tests that provide wide coverage on multiple architectures.
include:
# Valgrind is disabled due to some platform-specific issues in getpwuid() and getgrgid() that do not seem to be pgBackRest bugs.
- arch: ppc64le
env:
- PGB_CI="test --vm=none --param=no-coverage --param=module=command --param=module=storage --param=no-valgrind"
services:
- arch: arm64
env:
- PGB_CI="test --vm=none --param=no-coverage --param=module=command --param=module=storage"
services:
- arch: s390x
dist: bionic
env:
- PGB_CI="test --vm=none --param=no-coverage --param=module=command --param=module=storage"
services:
install:
- umask 0022 && cd ~ && pwd && whoami && umask && groups
- df -Th && top -bn1
script:
- ${TRAVIS_BUILD_DIR?}/test/ci.pl ${PGB_CI?}