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'
|
|
|
|
|
2024-03-09 23:43:24 +02:00
|
|
|
# Arm64 - disabled because it often takes several hours for the test to get queued in Cirrus CI
|
2021-10-02 23:27:33 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
2024-03-09 23:43:24 +02:00
|
|
|
# arm64_task:
|
|
|
|
# arm_container:
|
|
|
|
# image: ubuntu:20.04
|
|
|
|
# cpu: 4
|
|
|
|
# memory: 2G
|
2021-10-02 23:27:33 +02:00
|
|
|
|
2024-03-09 23:43:24 +02:00
|
|
|
# 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?}
|
2021-10-02 23:27:33 +02:00
|
|
|
|
2024-03-09 23:43:24 +02:00
|
|
|
# script:
|
|
|
|
# - su - testuser -c "${CIRRUS_WORKING_DIR?}/test/ci.pl test --sudo --no-tempfs --param=c-only --param=no-coverage"
|
2021-10-02 23:27:33 +02:00
|
|
|
|
2024-01-03 17:43:50 +02:00
|
|
|
# FreeBSD 13
|
2020-04-16 20:13:53 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
2024-01-03 17:43:50 +02:00
|
|
|
freebsd_13_task:
|
2022-10-13 23:59:07 +02:00
|
|
|
freebsd_instance:
|
2024-03-04 07:14:41 +02:00
|
|
|
image_family: freebsd-13-3
|
2022-10-13 23:59:07 +02:00
|
|
|
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:
|
2024-01-03 17:43:50 +02:00
|
|
|
- rsync --version
|
2023-05-23 09:58:51 +02:00
|
|
|
- cd .. && perl ${CIRRUS_WORKING_DIR}/test/test.pl --min-gen --make-cmd=gmake --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
|
|
|
|
2024-01-03 17:43:50 +02:00
|
|
|
# FreeBSD 14
|
2022-04-14 14:13:39 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
2024-01-03 17:43:50 +02:00
|
|
|
freebsd_14_task:
|
2022-10-13 23:59:07 +02:00
|
|
|
freebsd_instance:
|
2024-01-03 17:43:50 +02:00
|
|
|
image_family: freebsd-14-0
|
2022-10-13 23:59:07 +02:00
|
|
|
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:
|
2023-05-23 09:58:51 +02:00
|
|
|
- cd .. && perl ${CIRRUS_WORKING_DIR}/test/test.pl --min-gen --make-cmd=gmake --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
|
|
|
|
2023-04-21 15:21:10 +02:00
|
|
|
# MacOS Ventura
|
2020-04-16 20:13:53 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
2023-04-21 15:21:10 +02:00
|
|
|
macos_ventura_task:
|
|
|
|
osx_instance:
|
2024-09-20 14:58:18 +02:00
|
|
|
image: ghcr.io/cirruslabs/macos-runner:sonoma
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-04-21 15:21:10 +02:00
|
|
|
environment:
|
|
|
|
LDFLAGS: -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/libpq/lib -L/opt/homebrew/opt/libxml2/lib -L/opt/homebrew/opt/libyaml/lib
|
|
|
|
CPPFLAGS: -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libxml2/include/libxml2 -I/opt/homebrew/opt/libyaml/include
|
|
|
|
PERL5LIB: /opt/homebrew/opt/perl5/lib/perl5
|
|
|
|
PKG_CONFIG_PATH: /opt/homebrew/opt/libpq/lib/pkgconfig:/opt/homebrew/opt/openssl@1.1/lib/pkgconfig
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-04-21 15:21:10 +02:00
|
|
|
install_script:
|
|
|
|
- brew install -q pkg-config openssl@1.1 libpq libxml2 libyaml meson
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-04-21 15:21:10 +02:00
|
|
|
script:
|
2023-07-06 18:46:31 +02:00
|
|
|
- cd ..
|
|
|
|
- ${CIRRUS_WORKING_DIR}/test/test.pl --min-gen --vm-max=2 --no-coverage --no-valgrind --module=command --test=backup --test=info
|
2020-04-16 20:13:53 +02:00
|
|
|
|
2023-04-21 15:21:10 +02:00
|
|
|
debug_script:
|
|
|
|
- ls -lah ${CIRRUS_WORKING_DIR}
|
|
|
|
- ls -lahR /opt/homebrew/opt
|