summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-12-09 14:41:17 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-12-18 09:15:59 +0100
commitaf040650675fdd4c8bb56e6ef0390d32e21d88fd (patch)
treee13d7f7a8541e75a3d4da977288e3cc170eb1f06 /.ci
parent3234d65b1e587a357e651fb84d6e1bbd6963733f (diff)
downloadefl-af040650675fdd4c8bb56e6ef0390d32e21d88fd.tar.gz
ci: refactor configuration script
Re-factor if-else block for easier reading, update comments and check that we are on osx when executing that part. Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10865
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/ci-configure.sh35
1 files changed, 12 insertions, 23 deletions
diff --git a/.ci/ci-configure.sh b/.ci/ci-configure.sh
index 88ca9e22ad..f9a58604e7 100755
--- a/.ci/ci-configure.sh
+++ b/.ci/ci-configure.sh
@@ -1,11 +1,9 @@
#!/bin/sh
set -e
-
. .ci/travis.sh
if [ "$DISTRO" != "" ] ; then
- # Normal build test of all targets
# Why do we need to disable the imf loaders here?
OPTS=" -Decore-imf-loaders-disabler=scim,ibus"
@@ -14,9 +12,9 @@ if [ "$DISTRO" != "" ] ; then
WAYLAND_LINUX_COPTS=" -Dwl=true -Ddrm=true -Dopengl=es-egl -Dwl-deprecated=true -Ddrm-deprecated=true"
# TODO:
- # - Enable C++ bindings: -Dbindings=luajit,cxx
# - No libelogind package in fedora 30 repo
# - RPM fusion repo for xine and libvlc
+ # - Ibus
ENABLED_LINUX_COPTS=" -Dfb=true -Dsdl=true -Dbuffer=true -Dbuild-id=travis-build \
-Ddebug-threads=true -Dglib=true -Dg-mainloop=true -Dxpresent=true -Dxinput22=true \
-Devas-loaders-disabler=json -Decore-imf-loaders-disabler= -Demotion-loaders-disabler=libvlc,xine \
@@ -44,29 +42,24 @@ if [ "$DISTRO" != "" ] ; then
if [ "$1" = "default" ]; then
OPTS="$OPTS $MONO_LINUX_COPTS"
- fi
-
- if [ "$1" = "options-enabled" ]; then
+ elif [ "$1" = "options-enabled" ]; then
OPTS="$OPTS $ENABLED_LINUX_COPTS $WAYLAND_LINUX_COPTS"
- fi
-
- if [ "$1" = "options-disabled" ]; then
+ elif [ "$1" = "options-disabled" ]; then
OPTS="$OPTS $DISABLED_LINUX_COPTS"
- fi
-
- if [ "$1" = "wayland" ]; then
+ elif [ "$1" = "wayland" ]; then
OPTS="$OPTS $WAYLAND_LINUX_COPTS"
- fi
-
- if [ "$1" = "release-ready" ]; then
+ elif [ "$1" = "release-ready" ]; then
OPTS="$OPTS $RELEASE_READY_LINUX_COPTS"
- fi
-
- if [ "$1" = "coverity" ]; then
+ elif [ "$1" = "coverity" ]; then
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
+ 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'
+ travis_endfold cross-native
fi
if [ "$1" = "asan" ]; then
@@ -76,10 +69,6 @@ if [ "$DISTRO" != "" ] ; then
--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'
- travis_endfold cross-native
travis_fold meson meson
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"
@@ -96,7 +85,7 @@ if [ "$DISTRO" != "" ] ; then
--env LD="ld.gold" $(cat $HOME/cid) sh -c "mkdir build && meson build $OPTS"
travis_endfold meson
fi
-else
+elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
# Prepare OSX env for build
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents