X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=.cirrus.yml;h=ab88daf64005a76a58ad0e998124f359f3f4253c;hp=0bef58a7a1db1267df326b4c9076a72785653a7b;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=de1535fd78d57c779fc9c9ef49c54ed512a95948 diff --git a/.cirrus.yml b/.cirrus.yml index 0bef58a7..ab88daf6 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,12 +1,13 @@ env: LANG: C - DEFAULT_CONFIG_OPTS: --enable-debug --without-libstatgrab + CIRRUS_CLONE_DEPTH: 1 + DEFAULT_CONFIG_OPTS: --enable-debug --without-libstatgrab --disable-dependency-tracking ### # make distcheck and other sanity checks # -relase_ready_task: +release_ready_task: container: image: collectd/ci:stretch_amd64 lint_script: @@ -16,19 +17,15 @@ relase_ready_task: - ./build.sh - ./configure $DEFAULT_CONFIG_OPTS checks_script: - - make -s distcheck + - make -j2 -s distcheck DISTCHECK_CONFIGURE_FLAGS="${DEFAULT_CONFIG_OPTS}" ### -# Default toolchain and build flags use in deb packages, on a range of Debian +# Default toolchain and build flags used in deb packages, on a range of Debian # and Ubuntu releases (+ Debian/unstable) # Most should succeed, and PRs shouldn't break them. # 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 @@ -59,13 +56,13 @@ debian_default_toolchain_task: 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 ### -# Default toolchain and build flags use in RPM packages, on a range of RedHat +# Default toolchain and build flags used in RPM packages, on a range of RedHat # and Fedora releases (+ Fedora/rawhide) # Most should succeed, and PRs shouldn't break them. # @@ -82,10 +79,6 @@ redhat_default_toolchain_task: - 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 @@ -98,9 +91,9 @@ redhat_default_toolchain_task: - 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 @@ -124,15 +117,15 @@ non_standard_toolchains_task: - ./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: @@ -148,7 +141,7 @@ non_standard_toolchains_task: 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 @@ -158,25 +151,6 @@ non_standard_toolchains_task: 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: @@ -187,7 +161,7 @@ non_standard_toolchains_task: - ./build.sh - clang --version - > - ./configure CC=clang + ./configure CC=clang CXX=clang++ $DEFAULT_CONFIG_OPTS CFLAGS='-Wall -Wno-error @@ -214,9 +188,9 @@ non_standard_toolchains_task: -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 @@ -246,6 +220,6 @@ bleeding_edge_compilers_task: 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