summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-05-12 15:58:33 +0800
committerraveit65 <[email protected]>2019-05-21 09:16:57 +0200
commitcc55312b98d7a26c454069ddb30212be621f8d9f (patch)
tree10ebd6e3981518d149585341268ebdf0266df4c5
parentd98d60a74976e544c2a844f41dd00db9d9ac999a (diff)
downloadmozo-cc55312b98d7a26c454069ddb30212be621f8d9f.tar.bz2
mozo-cc55312b98d7a26c454069ddb30212be621f8d9f.tar.xz
[ci] enable meson build on travis
-rw-r--r--.travis.yml26
1 files changed, 16 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index f79d9d7..af812f4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,7 @@ install:
- ./docker-build --name ${DISTRO} --config .travis.yml --install
script:
- - ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build autotools
+ - ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build meson --build autotools
deploy:
- provider: script
@@ -46,6 +46,7 @@ requires:
- make
- mate-common
- mate-menus
+ - meson
- python-gobject
- which
@@ -60,6 +61,7 @@ requires:
- libmate-menu-dev
- make
- mate-common
+ - meson
- python-gi-dev
- python3
@@ -71,6 +73,7 @@ requires:
- make
- mate-common
- mate-menus-devel
+ - meson
- pygobject3-devel
- python3-devel
- redhat-rpm-config
@@ -84,6 +87,7 @@ requires:
- libmate-menu-dev
- make
- mate-common
+ - meson
- python-gi-dev
- python3
@@ -91,12 +95,6 @@ variables:
- CFLAGS="-Wall -Werror=format-security"
before_scripts:
- - if [ ${DISTRO_NAME} == "debian" ];then
- - curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/debian.sh
- - bash ./debian.sh
- - fi
-
- - cd ${START_DIR}
- if [ ! -d mate-menus-build ]; then
- git clone --depth 1 https://github.com/mate-desktop/mate-menus.git mate-menus-build
- fi
@@ -113,14 +111,22 @@ before_scripts:
- make install
after_scripts:
- - make distcheck
+ - if [ ${BUILD_TYPE} == "autotools" ];then
+ - if [ ${DISTRO_NAME} == "debian" ];then
+ - curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/debian.sh
+ - bash ./debian.sh
+ - fi
+ - make distcheck
+ - elif [ -d _build ];then
+ - ninja -C _build dist
+ - fi
releases:
draft: false
prerelease: false
- checksum: true
+ checksum: false
file_glob: true
- files: mozo-*.tar.xz
+ files: _build/meson-dist/mozo-*.tar.xz
github_release:
tags: true
overwrite: true