forked from pgbackrest/pgbackrest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
45 lines (34 loc) · 1.79 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Cirrus CI Build Definitions
# ----------------------------------------------------------------------------------------------------------------------------------
# Build the branch if it is integration or ends in -ci/-cic (-cic targets only Cirrus CI)
only_if: $CIRRUS_BRANCH == 'integration' || $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 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/[email protected]/lib -L/usr/local/opt/libpq/lib -L/usr/local/opt/libxml2/lib
CPPFLAGS: -I/usr/local/opt/[email protected]/include -I/usr/local/opt/libpq/include -I/usr/local/opt/libxml2/include/libxml2
PERL5LIB: /usr/local/opt/perl5/lib/perl5
install_script:
- brew install -q [email protected] libpq libxml2 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}