summaryrefslogtreecommitdiff
path: root/.ci/ci-configure.sh
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-06-25 12:11:33 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-06-25 12:11:33 -0400
commit4f0989f2904c20ad2768b8244190b82b701c0564 (patch)
tree214791646acc23c2c0b87452882d155a1351ada6 /.ci/ci-configure.sh
parent8103b5687479385b3b2ba0fe5eddb9e6ce6b50c4 (diff)
downloadefl-4f0989f2904c20ad2768b8244190b82b701c0564.tar.gz
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
Diffstat (limited to '.ci/ci-configure.sh')
-rwxr-xr-x.ci/ci-configure.sh16
1 files changed, 16 insertions, 0 deletions
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" \