4 DEFAULT_CONFIG_OPTS: --enable-debug --without-libstatgrab --disable-dependency-tracking
8 # make distcheck and other sanity checks
12 image: collectd/ci:stretch_amd64
14 - /checks/check-bashisms.sh
15 - /checks/check-pod.sh
18 - ./configure $DEFAULT_CONFIG_OPTS
20 - make -j2 -s distcheck DISTCHECK_CONFIGURE_FLAGS="${DEFAULT_CONFIG_OPTS}"
23 # Default toolchain and build flags used in deb packages, on a range of Debian
24 # and Ubuntu releases (+ Debian/unstable)
25 # Most should succeed, and PRs shouldn't break them.
27 debian_default_toolchain_task:
29 - allow_failures: false
31 image: collectd/ci:jessie_amd64
32 - allow_failures: false
34 image: collectd/ci:stretch_amd64
35 - allow_failures: false
37 image: collectd/ci:stretch_i386
38 - allow_failures: false
40 image: collectd/ci:trusty_amd64
41 - allow_failures: false
43 image: collectd/ci:xenial_amd64
44 # debian/unstable is expected to fail
45 - allow_failures: true
46 skip_notifications: true
47 only_if: $CIRRUS_BRANCH == 'master'
49 image: collectd/ci:sid_amd64
54 ./configure CC=gcc $DEFAULT_CONFIG_OPTS
55 CFLAGS="$(dpkg-buildflags --get CFLAGS)"
56 CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
57 LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
62 - /checks/check-built-plugins.sh
65 # Default toolchain and build flags used in RPM packages, on a range of RedHat
66 # and Fedora releases (+ Fedora/rawhide)
67 # Most should succeed, and PRs shouldn't break them.
69 redhat_default_toolchain_task:
71 - allow_failures: false
72 skip_notifications: false
74 image: collectd/ci:el6_x86_64
75 - allow_failures: true
76 skip_notifications: true
78 image: collectd/ci:el7_x86_64 # TODO: fix this platform
79 - allow_failures: true
80 skip_notifications: true
82 image: collectd/ci:fedora28_x86_64
83 # fedora/rawhide is expected to fail
84 - allow_failures: true
85 skip_notifications: true
86 only_if: $CIRRUS_BRANCH == 'master'
88 image: collectd/ci:fedora_rawhide_x86_64
92 - ./configure CC=gcc $DEFAULT_CONFIG_OPTS CFLAGS="$(rpm --eval '%optflags')"
97 - /checks/check-built-plugins.sh
101 # Misc non-standard build environment & options on most recent released debian
103 # Some are expected to fail, others should always pass
104 non_standard_toolchains_task:
106 image: collectd/ci:stretch_amd64
107 only_if: $CIRRUS_PR == ''
111 # build using clang with default build flags, should always pass
114 allow_failures: true # TODO: fix this platform
115 skip_notifications: true
120 ./configure CC=clang CXX=clang++
122 CFLAGS="$(dpkg-buildflags --get CFLAGS)"
123 CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
124 LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
130 # build against libstatgrab, should always pass
133 allow_failures: false
134 skip_notifications: false
139 ./configure --with-libstatgrab --enable-debug
140 CFLAGS="$(dpkg-buildflags --get CFLAGS)"
141 CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
142 LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
147 for i in cpu disk interface load memory swap users; do
148 if ! $(ldd ".libs/${i}.so" 2>/dev/null | grep -q 'libstatgrab.so'); then
149 echo "plugin $i NOT linked against libstatgrab"
154 # build using clang with a collection of strict build flags, will most
155 # probably always fail
159 skip_notifications: true
164 ./configure CC=clang CXX=clang++
172 -Wmissing-include-dirs
173 -Wold-style-definition
177 -Wimplicit-function-declaration
178 -Wmissing-declarations
184 -Wno-unused-parameter
185 -Wno-missing-field-initializers
188 -Wno-typedef-redefinition
189 -Wno-gnu-variable-sized-type-not-at-end'
196 # Build using a range of compilers, available in debian/unstable. NB: might
197 # fail because of changes to the distro, not the compiler used.
199 bleeding_edge_compilers_task:
201 image: collectd/ci:sid_amd64
202 only_if: $CIRRUS_BRANCH == 'master'
204 skip_notifications: true
219 CFLAGS="$(dpkg-buildflags --get CFLAGS)"
220 CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
221 LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"