2020-04-16 20:13:53 +02:00
|
|
|
# Cirrus CI Build Definitions
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2021-04-23 00:18:34 +02:00
|
|
|
# Build the branch if it is integration, a pull request, or ends in -ci/-cic (-cic targets only Cirrus CI)
|
|
|
|
only_if: $CIRRUS_BRANCH == 'integration' || $CIRRUS_PR != '' || $CIRRUS_BRANCH =~ '.*-ci$' || $CIRRUS_BRANCH =~ '.*-cic$'
|
2020-04-16 20:13:53 +02:00
|
|
|
|
|
|
|
# No auto-cancel on integration
|
|
|
|
auto_cancellation: $CIRRUS_BRANCH != 'integration'
|
|
|
|
|
|
|
|
# FreeBSD 12
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
freebsd_12_task:
|
|
|
|
freebsd_instance:
|
2021-04-13 23:03:28 +02:00
|
|
|
image_family: freebsd-12-2
|
2021-01-24 23:24:14 +02:00
|
|
|
cpu: 4
|
|
|
|
memory: 4G
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2021-07-19 01:02:01 +02:00
|
|
|
install_script: pkg install -y bash git postgresql-libpqxx pkgconf libxml2 gmake perl5 libyaml p5-YAML-LibYAML rsync
|
2020-04-16 20:13:53 +02:00
|
|
|
|
|
|
|
script:
|
2021-02-26 23:52:59 +02:00
|
|
|
- perl ${CIRRUS_WORKING_DIR}/test/test.pl --no-gen --make-cmd=gmake --vm=none --vm-max=2 --no-coverage --no-valgrind --module=command --test=backup
|
2020-04-16 20:13:53 +02:00
|
|
|
|
|
|
|
debug_script:
|
|
|
|
- ls -lah ${CIRRUS_WORKING_DIR}
|
|
|
|
|
|
|
|
# MacOS Catalina
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
macos_catalina_task:
|
|
|
|
osx_instance:
|
|
|
|
image: catalina-xcode
|
|
|
|
|
|
|
|
environment:
|
2021-07-19 01:02:01 +02:00
|
|
|
LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/libpq/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libyaml/lib
|
|
|
|
CPPFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/libpq/include -I/usr/local/opt/libxml2/include/libxml2 -I/usr/local/opt/libyaml/include
|
2021-01-24 23:24:14 +02:00
|
|
|
PERL5LIB: /usr/local/opt/perl5/lib/perl5
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2021-01-24 23:24:14 +02:00
|
|
|
install_script:
|
2021-07-19 01:02:01 +02:00
|
|
|
- brew install -q openssl@1.1 libpq libxml2 libyaml cpanm
|
2021-03-08 23:01:05 +02:00
|
|
|
- cpanm --local-lib=/usr/local/opt/perl5 install YAML::XS
|
2020-04-16 20:13:53 +02:00
|
|
|
|
|
|
|
script:
|
2021-02-26 23:52:59 +02:00
|
|
|
- ${CIRRUS_WORKING_DIR}/test/test.pl --no-gen --vm=none --vm-max=2 --no-coverage --no-valgrind --module=command --test=backup
|
2020-04-16 20:13:53 +02:00
|
|
|
|
|
|
|
debug_script:
|
|
|
|
- ls -lah ${CIRRUS_WORKING_DIR}
|