-
Notifications
You must be signed in to change notification settings - Fork 18
/
.cirrus.yml
92 lines (76 loc) · 2.2 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
# Standard environment setup.
env_template: &ENVIRONMENT
environment:
LC_ALL: C
CIRRUS_CLONE_DEPTH: 1
timeout_in: 10m
# Standard compilation and testing rules
compile_template: &COMPILE
compile_script:
- autoreconf -i
- ./configure
- make -j4
test_script:
- make check
# on_failure:
# - cat tests/test-suite.log
# ----------
# Linux
task:
<< : *ENVIRONMENT
name: linux-arm
arm_container:
image: ubuntu:latest
cpu: 2
memory: 1G
# NB: we could consider building a docker image with these
# preinstalled and specifying that instead, to speed up testing.
install_script: |
apt-get update
apt-get install -y --no-install-suggests --no-install-recommends \
ca-certificates clang libc-dev make git autoconf automake libtool \
libbz2-dev
compile_script:
- autoreconf -i
- ./configure CC="clang" --disable-shared
- make -j4 CFLAGS="-g -O3 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter"
test_script:
- make check CFLAGS="-g -O3 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter"
- make distcheck
# Rocky Linux
rocky_task:
<< : *ENVIRONMENT
name: rockylinux-gcc
container:
image: rockylinux:9
cpu: 2
memory: 1G
# # See https://cirrus-ci.org/guide/writing-tasks/#cache-instruction
# # Not worth it as it takes longer to unpack the /usr updates than
# # to just install the bits we need. No easy way to install elsewhere
# # either. :/
# install_cache:
# folder: /usr # Will this work!? It's ~150Mb. Yes, but don't bother
# populate_script: |
# yum install -y \
# autoconf automake libtool make gcc zlib-devel \
# bzip2 bzip2-devel git diffutils
install_script: |
yum install -y autoconf automake libtool make gcc zlib-devel \
bzip2 bzip2-devel git diffutils
<< : *COMPILE
# ----------
# FreeBSD
task:
name: freebsd
freebsd_instance:
image_family: freebsd-14-1
pkginstall_script:
- pkg update -f
- pkg install -y gcc autoconf automake libdeflate libtool
compile_script:
- autoreconf -i
- ./configure
- make -j4 CFLAGS="-g -O3 -Wall -Werror"
test_script:
- make check CFLAGS="-g -O3 -Wall -Werror"