summaryrefslogtreecommitdiff
path: root/.ci/ci-configure.sh
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-08-19 14:17:28 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2019-11-27 14:21:25 +0100
commitf8253267505879a3baf49849fc4780156919030f (patch)
tree1b2df7474f20aef07c666346dcf28122c82405dc /.ci/ci-configure.sh
parent3bc0fef21ce5cd16799da5f47d3a36abc0aa8201 (diff)
downloadefl-f8253267505879a3baf49849fc4780156919030f.tar.gz
ci: travis: add job to build efl and run tests with address sanitizer
A first step to have addrress sanitizer coverage on our EFL build. It already catched some use after free errors and memory corruptions. Still we have some limititation how we are running this right now. We currently ignore some leaks that are exposed durign the normal build wile haveing the short living runs of edje_cc, elm_prefs_cc, etc. For now the whole leak detection is disabled on the testsuite as well. This is still very valuable, especially for all non-leak cases it finds, thus we are goign to run this on our daily build. Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10691
Diffstat (limited to '.ci/ci-configure.sh')
-rwxr-xr-x.ci/ci-configure.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/.ci/ci-configure.sh b/.ci/ci-configure.sh
index 035d154508..0cccda0eec 100755
--- a/.ci/ci-configure.sh
+++ b/.ci/ci-configure.sh
@@ -69,7 +69,13 @@ if [ "$DISTRO" != "" ] ; then
travis_endfold cov-download
fi
- if [ "$1" = "mingw" ]; then
+ if [ "$1" = "asan" ]; then
+ travis_fold meson meson
+ docker exec --env EIO_MONITOR_POLL=1 --env CC="ccache gcc" \
+ --env CXX="ccache g++" --env CFLAGS="-O0 -g" --env CXXFLAGS="-O0 -g" \
+ --env LD="ld.gold" $(cat $HOME/cid) sh -c "mkdir build && meson build $OPTS -Db_sanitize=address"
+ travis_endfold meson
+ elif [ "$1" = "mingw" ]; then
OPTS="$OPTS $MINGW_COPTS"
travis_fold cross-native cross-native
docker exec $(cat $HOME/cid) sh -c '.ci/bootstrap-efl-native-for-cross.sh'