forked from freebsd/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
97 lines (93 loc) · 4.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
freebsd_task:
install_script: ASSUME_ALWAYS_YES=yes pkg bootstrap -f ; pkg install -y kyua pkgconf python3 bzip2
script:
- mkdir build && cd build
- ../configure $EXTRA_ARGS
- make -j4 || make V=1
check_script:
- cd build
- make check || { kyua report --verbose ; exit 1 ; }
matrix:
- name: freebsd12.3-amd64
freebsd_instance:
image: freebsd-12-3-release-amd64
- name: freebsd13.1-amd64
freebsd_instance:
image: freebsd-13-1-release-amd64
- name: freebsd14-amd64
freebsd_instance:
image_family: freebsd-14-0-snap
env:
#EXTRA_ARGS: --with-asan --with-ubsan
# There are still a few occurrences of this error (adding offset to NULL pointer)
CPPFLAGS: -fno-sanitize=pointer-overflow -ftrivial-auto-var-init=pattern
debian_task:
container:
image: debian:latest
install_script:
- DEBIAN_FRONTEND=noninteractive apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y libsqlite3-dev libbsd-dev libarchive-tools libarchive-dev libssl-dev liblzma-dev liblua5.2-dev nettle-dev liblzo2-dev libattr1-dev libacl1-dev wget build-essential zlib1g-dev libbz2-dev m4 libexpat1-dev liblz4-dev libxml2-dev libzstd-dev kyua atf-sh libatf-dev python3 bzip2
env:
# False-positive leak detection in recent glibc:
# Direct leak of 12 byte(s) in 2 object(s) allocated from:
# #0 0x7fe222e5d3cf in __interceptor_malloc (/lib64/libasan.so.6+0xab3cf)
# #1 0x7fe22260f08f in __vasprintf_internal (/lib64/libc.so.6+0x7f08f)
ASAN_OPTIONS: detect_leaks=0
script:
- mkdir build && cd build
- ../configure --with-libarchive.pc --with-asan --with-ubsan
- make -j4 || make V=1
check_script:
- cd build
- make check || { kyua report --verbose ; exit 1 ; }
#osx_task:
# osx_instance:
# image: catalina-xcode
# install_script: scripts/install_deps.sh
# env:
# LDFLAGS: -L/usr/local/opt/libarchive/lib -L/usr/local/opt/openssl/lib
# CPPFLAGS: -I/usr/local/opt/libarchive/include -I/usr/local/opt/openssl/include -ftrivial-auto-var-init=pattern
# CXXFLAGS: -I/usr/local/opt/libarchive/include -I/usr/local/opt/openssl/include -ftrivial-auto-var-init=pattern
# CFLAGS: -I/usr/local/opt/libarchive/include -I/usr/local/opt/openssl/include -ftrivial-auto-var-init=pattern
# script:
# - mkdir build && cd build
# - ../configure --with-asan --with-ubsan
# - make -j4 || make V=1
# check_script:
# - cd build
# - make check || { kyua report --verbose ; exit 1 ;}
#fedora_task:
# container:
# image: fedora:latest
# env:
# # False-positive leak detection in recent glibc:
# # Direct leak of 12 byte(s) in 2 object(s) allocated from:
# # #0 0x7fe222e5d3cf in __interceptor_malloc (/lib64/libasan.so.6+0xab3cf)
# # #1 0x7fe22260f08f in __vasprintf_internal (/lib64/libc.so.6+0x7f08f)
# ASAN_OPTIONS: detect_leaks=0
# install_script:
# - dnf -y upgrade
# - dnf -y install gcc g++ make kyua libatf-c-devel libatf-sh-devel libatf-sh libbsd-devel zlib-devel
# bzip2-devel libarchive-devel openssl-devel xz-devel m4 lz4-devel expat-devel
# libxml2-devel libacl-devel libzstd-devel
# libasan-static libubsan-static libasan-static libubsan-static
# bsdtar diffutils openssl which xz python3 bzip2
# script:
# - mkdir build && cd build
# - ../configure --with-libarchive.pc --with-asan --with-ubsan
# - make -j4 || make V=1
# check_script:
# - cd build
# - make check || { kyua report --verbose ; exit 1 ; }
alpine_task:
container:
image: alpine:latest
install_script:
- apk add musl-dev gcc g++ make kyua pkgconf gcompat tcl musl-fts-dev libbsd-dev libarchive-dev openssl-dev bzip2-dev xz-dev zlib-dev m4
script:
- mkdir build && cd build
- ../configure
- make -j4 || make V=1
check_script:
- cd build
- make check || { kyua report --verbose ; exit 1 ; }