summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.ci/build-example.sh16
-rwxr-xr-x.ci/ci-build-test.sh23
-rw-r--r--.ci/example/meson.build13
-rw-r--r--.ci/example/src/main.c11
-rw-r--r--.ci/example/src/meson.build12
-rw-r--r--.travis.yml10
6 files changed, 78 insertions, 7 deletions
diff --git a/.ci/build-example.sh b/.ci/build-example.sh
new file mode 100755
index 0000000000..0e1a16b099
--- /dev/null
+++ b/.ci/build-example.sh
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3set -e
4
5if [ -d /usr/local/lib64 ] ; then
6 export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
7else
8 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
9fi
10cd .ci/example
11
12#build the example
13mkdir build
14meson . build
15ninja -C build all
16
diff --git a/.ci/ci-build-test.sh b/.ci/ci-build-test.sh
new file mode 100755
index 0000000000..67b39dec5e
--- /dev/null
+++ b/.ci/ci-build-test.sh
@@ -0,0 +1,23 @@
1#!/bin/sh
2
3set -e
4. .ci/travis.sh
5travis_fold compile_test compile_test
6if [ "$DISTRO" != "" ] ; then
7 if [ "$1" = "coverity" ] ; then
8 exit 0
9 fi
10 if [ "$1" = "mingw" ] ; then
11 exit 0
12 fi
13 if [ "$1" = "release-ready" ] ; then
14 exit 0
15 fi
16 docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-example.sh
17else
18 exit 0
19 #FIXME: we don't install efl_ui.pc on osx?
20 export PATH="$(brew --prefix gettext)/bin:$PATH"
21 .ci/build-example.sh
22fi
23travis_endfold compile_test
diff --git a/.ci/example/meson.build b/.ci/example/meson.build
new file mode 100644
index 0000000000..b3d698afc0
--- /dev/null
+++ b/.ci/example/meson.build
@@ -0,0 +1,13 @@
1project(
2 'efl-example', 'c',
3 version : '0.0.1',
4 default_options: [ 'c_std=gnu99', 'warning_level=2' ],
5 meson_version : '>= 0.38.0')
6
7eina = dependency('eina', version : '>=1.20.99')
8efl = dependency('efl-ui', version : '>=1.20.99')
9elm = dependency('elementary', version : '>=1.20.99')
10
11inc = include_directories('.')
12subdir('src')
13
diff --git a/.ci/example/src/main.c b/.ci/example/src/main.c
new file mode 100644
index 0000000000..1d1230e496
--- /dev/null
+++ b/.ci/example/src/main.c
@@ -0,0 +1,11 @@
1#define EFL_BETA_API_SUPPORT 1
2#define EFL_NOLEGACY_API_SUPPORT
3#include <Efl_Ui.h>
4
5
6EAPI_MAIN void
7efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
8{
9 return 0;
10}
11EFL_MAIN()
diff --git a/.ci/example/src/meson.build b/.ci/example/src/meson.build
new file mode 100644
index 0000000000..47673e9145
--- /dev/null
+++ b/.ci/example/src/meson.build
@@ -0,0 +1,12 @@
1src = files([
2 'main.c',
3])
4
5deps = [eina, efl, elm]
6
7executable('efl_example', src,
8 dependencies : deps,
9 include_directories : inc,
10 install : true
11)
12
diff --git a/.travis.yml b/.travis.yml
index 9af193ac9d..08c9fc2cd1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -103,15 +103,11 @@ script:
103 if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then 103 if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_BUILD_TYPE" == "" ]]; then
104 .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE" 104 .ci/ci-make-benchmark.sh "$CI_BUILD_TYPE"
105 fi 105 fi
106 #- .ci/ci-make-install.sh "$CI_BUILD_TYPE" 106 - .ci/ci-make-install.sh "$CI_BUILD_TYPE"
107 - .ci/ci-make-check.sh "$CI_BUILD_TYPE" 107 - .ci/ci-make-check.sh "$CI_BUILD_TYPE"
108 - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE" 108 - .ci/ci-make-distcheck.sh "$CI_BUILD_TYPE"
109 #- | 109 - |
110 #if [[ "$DISTRO" == "" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]] ; then 110 - .ci/ci-build-test.sh "$CI_BUILD_TYPE"
111 #true
112 #elif [[ "$CI_BUILD_TYPE" != "release-ready" ]] ; then
113 #docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) .ci/build-efl-app.sh
114 #fi
115before_cache: 111before_cache:
116 - .ci/ci-ccache-stats.sh 112 - .ci/ci-ccache-stats.sh
117 - | 113 - |