mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
c5ae047e76
Parse enough of config.yaml to auto-generate config.auto.h and config.auto.c. This commit implements most of the infrastructure needed to migrate the rest of the build code to C, but each set of auto-generated files will present its own challenges. The build is now dependent on libyaml. At this point there is no need for a hard requirement, but that will come soon so it seems better to add the dependency now.
46 lines
1.9 KiB
YAML
46 lines
1.9 KiB
YAML
# Cirrus CI Build Definitions
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
# 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$'
|
|
|
|
# No auto-cancel on integration
|
|
auto_cancellation: $CIRRUS_BRANCH != 'integration'
|
|
|
|
# FreeBSD 12
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
freebsd_12_task:
|
|
freebsd_instance:
|
|
image_family: freebsd-12-2
|
|
cpu: 4
|
|
memory: 4G
|
|
|
|
install_script: pkg install -y bash git postgresql-libpqxx pkgconf libxml2 gmake perl5 libyaml p5-YAML-LibYAML rsync
|
|
|
|
script:
|
|
- 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
|
|
|
|
debug_script:
|
|
- ls -lah ${CIRRUS_WORKING_DIR}
|
|
|
|
# MacOS Catalina
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
macos_catalina_task:
|
|
osx_instance:
|
|
image: catalina-xcode
|
|
|
|
environment:
|
|
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
|
|
PERL5LIB: /usr/local/opt/perl5/lib/perl5
|
|
|
|
install_script:
|
|
- brew install -q openssl@1.1 libpq libxml2 libyaml cpanm
|
|
- cpanm --local-lib=/usr/local/opt/perl5 install YAML::XS
|
|
|
|
script:
|
|
- ${CIRRUS_WORKING_DIR}/test/test.pl --no-gen --vm=none --vm-max=2 --no-coverage --no-valgrind --module=command --test=backup
|
|
|
|
debug_script:
|
|
- ls -lah ${CIRRUS_WORKING_DIR}
|