From 4f0989f2904c20ad2768b8244190b82b701c0564 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 25 Jun 2019 12:11:33 -0400 Subject: ci: travis: add coverity build job to be run from cron Summary: We finally have regular Coverity Scan runs back to our CI. It gets triggered from the cron jobs on Travis. As we are not able to identify if it comes from a daily or weekly cron build I added a check to only run the scan build on a Saturday so we should have a nice and fresh report on Monday morning in our mailboxes. Reviewers: zmike, bu5hm4n Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9175 --- .ci/ci-configure.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.ci/ci-configure.sh') diff --git a/.ci/ci-configure.sh b/.ci/ci-configure.sh index 7802c6b409..cc1f8497d0 100755 --- a/.ci/ci-configure.sh +++ b/.ci/ci-configure.sh @@ -56,6 +56,17 @@ if [ "$DISTRO" != "" ] ; then OPTS="$OPTS $RELEASE_READY_LINUX_COPTS" fi + if [ "$1" = "coverity" ]; then + if [ $(date +%A) != "Saturday" ]; then + echo "Not Saturday so we are not running our weekly Coverity scan build." + exit 0 + fi + OPTS="$OPTS $WAYLAND_LINUX_COPTS" + travis_fold cov-download cov-download + docker exec --env COVERITY_SCAN_TOKEN=$COVERITY_SCAN_TOKEN $(cat $HOME/cid) sh -c '.ci/coverity-tools-install.sh' + travis_endfold cov-download + fi + if [ "$1" = "mingw" ]; then OPTS="$OPTS $MINGW_COPTS" travis_fold cross-native cross-native @@ -65,6 +76,11 @@ if [ "$DISTRO" != "" ] ; then docker exec --env EIO_MONITOR_POLL=1 --env PKG_CONFIG_PATH="/ewpi-64-install/lib/pkgconfig/" \ $(cat $HOME/cid) sh -c "mkdir build && meson build $OPTS" travis_endfold meson + elif [ "$1" = "coverity" ]; then + travis_fold meson meson + docker exec --env EIO_MONITOR_POLL=1 --env CFLAGS="-fdirectives-only" --env CC="gcc" --env CXX="g++"\ + --env CXXFLAGS="-fdirectives-only" $(cat $HOME/cid) sh -c "mkdir build && meson build $OPTS" + travis_endfold meson else travis_fold meson meson docker exec --env EIO_MONITOR_POLL=1 --env CC="ccache gcc" \ -- cgit v1.2.1