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'
|
|
|
|
|
2021-10-02 23:27:33 +02:00
|
|
|
# Arm64
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
arm64_task:
|
|
|
|
arm_container:
|
|
|
|
image: ubuntu:20.04
|
|
|
|
cpu: 4
|
|
|
|
memory: 2G
|
|
|
|
|
|
|
|
install_script:
|
|
|
|
- apt-get update && apt-get install -y perl sudo locales
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
|
|
|
- dpkg-reconfigure --frontend=noninteractive locales
|
|
|
|
- update-locale LANG=en_US.UTF-8
|
|
|
|
- adduser --disabled-password --gecos "" testuser
|
|
|
|
- echo '%testuser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
|
|
- chown -R testuser ${CIRRUS_WORKING_DIR?}
|
|
|
|
|
|
|
|
script:
|
|
|
|
- su - testuser -c "${CIRRUS_WORKING_DIR?}/test/ci.pl test --vm=none --sudo --no-tempfs --param=c-only --param=no-coverage"
|
|
|
|
|
2020-04-16 20:13:53 +02:00
|
|
|
# FreeBSD 12
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
2022-10-13 23:59:07 +02:00
|
|
|
freebsd_12_task:
|
|
|
|
freebsd_instance:
|
|
|
|
image_family: freebsd-12-3
|
|
|
|
cpu: 4
|
|
|
|
memory: 4G
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2022-10-13 23:59:07 +02:00
|
|
|
install_script: pkg update && pkg upgrade -y libiconv && pkg install -y bash git postgresql-libpqxx pkgconf libxml2 gmake perl5 libyaml p5-YAML-LibYAML rsync meson
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2022-10-13 23:59:07 +02:00
|
|
|
script:
|
|
|
|
- cd .. && perl ${CIRRUS_WORKING_DIR}/test/test.pl --min-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
|
|
|
|
2022-10-13 23:59:07 +02:00
|
|
|
debug_script:
|
|
|
|
- ls -lah ${CIRRUS_WORKING_DIR}
|
2022-04-14 14:13:39 +02:00
|
|
|
|
|
|
|
# FreeBSD 13
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
2022-10-13 23:59:07 +02:00
|
|
|
freebsd_13_task:
|
|
|
|
freebsd_instance:
|
|
|
|
image_family: freebsd-13-1
|
|
|
|
cpu: 4
|
|
|
|
memory: 4G
|
2022-04-14 14:13:39 +02:00
|
|
|
|
2022-10-13 23:59:07 +02:00
|
|
|
install_script: pkg update && pkg upgrade -y libiconv && pkg install -y bash git postgresql-libpqxx pkgconf libxml2 gmake perl5 libyaml p5-YAML-LibYAML rsync meson
|
2022-04-14 14:13:39 +02:00
|
|
|
|
2022-10-13 23:59:07 +02:00
|
|
|
script:
|
|
|
|
- rsync --version
|
|
|
|
- cd .. && perl ${CIRRUS_WORKING_DIR}/test/test.pl --min-gen --make-cmd=gmake --vm=none --vm-max=2 --no-coverage --no-valgrind --module=command --test=backup
|
2022-04-14 14:13:39 +02:00
|
|
|
|
2022-10-13 23:59:07 +02:00
|
|
|
debug_script:
|
|
|
|
- ls -lah ${CIRRUS_WORKING_DIR}
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2022-04-14 14:13:39 +02:00
|
|
|
# MacOS Monterey
|
2020-04-16 20:13:53 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
2023-01-02 10:11:37 +02:00
|
|
|
# macos_monterey_task:
|
|
|
|
# osx_instance:
|
|
|
|
# image: monterey-xcode
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-01-02 10:11:37 +02:00
|
|
|
# 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
|
|
|
|
# PKG_CONFIG_PATH: /usr/local/opt/libpq/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-01-02 10:11:37 +02:00
|
|
|
# install_script:
|
|
|
|
# - brew install -q pkg-config openssl@1.1 libpq libxml2 libyaml cpanm meson
|
|
|
|
# - cpanm --local-lib=/usr/local/opt/perl5 install YAML::XS
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-01-02 10:11:37 +02:00
|
|
|
# script:
|
|
|
|
# - cd .. && ${CIRRUS_WORKING_DIR}/test/test.pl --min-gen --vm=none --vm-max=2 --no-coverage --no-valgrind --module=command --test=backup
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-01-02 10:11:37 +02:00
|
|
|
# debug_script:
|
|
|
|
# - ls -lah ${CIRRUS_WORKING_DIR}
|