env:
LANG: C
+ CIRRUS_CLONE_DEPTH: 1
DEFAULT_CONFIG_OPTS: --enable-debug --without-libstatgrab --disable-dependency-tracking
- ./build.sh
- ./configure $DEFAULT_CONFIG_OPTS
checks_script:
- - make -s distcheck DISTCHECK_CONFIGURE_FLAGS="${DEFAULT_CONFIG_OPTS}"
+ - make -j2 -s distcheck DISTCHECK_CONFIGURE_FLAGS="${DEFAULT_CONFIG_OPTS}"
###
# Default toolchain and build flags used in deb packages, on a range of Debian
#
debian_default_toolchain_task:
matrix:
- - allow_failures: true
- skip_notifications: true
- container:
- image: collectd/ci:wheezy_amd64 # TODO: fix this platform
- allow_failures: false
container:
image: collectd/ci:jessie_amd64
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- - make -sk
+ - make -j2 -sk
tests_script:
- - make -sk check
+ - make -j2 -sk check
- /checks/check-built-plugins.sh
###
- allow_failures: true
skip_notifications: true
container:
- image: collectd/ci:fedora26_x86_64
- - allow_failures: true
- skip_notifications: true
- container:
image: collectd/ci:fedora28_x86_64
# fedora/rawhide is expected to fail
- allow_failures: true
- gcc --version
- ./configure CC=gcc $DEFAULT_CONFIG_OPTS CFLAGS="$(rpm --eval '%optflags')"
build_script:
- - make -sk
+ - make -j2 -sk
tests_script:
- - make -sk check
+ - make -j2 -sk check
- /checks/check-built-plugins.sh
- ./build.sh
- clang --version
- >
- ./configure CC=clang
+ ./configure CC=clang CXX=clang++
$DEFAULT_CONFIG_OPTS
CFLAGS="$(dpkg-buildflags --get CFLAGS)"
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- - make -sk
+ - make -j2 -sk
tests_script:
- - make -sk check
+ - make -j2 -sk check
# build against libstatgrab, should always pass
- env:
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- - make -sk
+ - make -j2 -sk
tests_script:
- >
for i in cpu disk interface load memory swap users; do
fi
done
- # build against musl-libc using gcc wrapper, expected to fail
- - env:
- LABEL: musl libc
- allow_failures: true
- skip_notifications: true
- configure_script:
- - ./build.sh
- - musl-gcc --version
- - >
- ./configure CC=musl-gcc
- $DEFAULT_CONFIG_OPTS
- CFLAGS="$(dpkg-buildflags --get CFLAGS)"
- CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
- LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
- build_script:
- - make -sk
- tests_script:
- - make -sk check
-
# build using clang with a collection of strict build flags, will most
# probably always fail
- env:
- ./build.sh
- clang --version
- >
- ./configure CC=clang
+ ./configure CC=clang CXX=clang++
$DEFAULT_CONFIG_OPTS
CFLAGS='-Wall
-Wno-error
-Wno-typedef-redefinition
-Wno-gnu-variable-sized-type-not-at-end'
build_script:
- - make -sk
+ - make -j2 -sk
tests_script:
- - make -sk check
+ - make -j2 -sk check
###
# Build using a range of compilers, available in debian/unstable. NB: might
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- - make -sk
+ - make -j2 -sk
tests_script:
- - make -sk check
+ - make -j2 -sk check