travis-script: exit if meson build/install fails

This commit is contained in:
Riccardo Schirone 2018-09-12 16:24:17 +02:00
parent 4bb4a2ce30
commit 4b1e500423

View File

@ -29,10 +29,10 @@ if [ "${INSTALL_SYSTEM}" == "meson" ] ; then
OPTS="${OPTS} -Db_coverage=true"
fi
meson --prefix=${TRAVIS_BUILD_DIR}/install ${OPTS} build
meson --prefix=${TRAVIS_BUILD_DIR}/install ${OPTS} build || exit 1
pushd build
ninja
ninja install
ninja || exit 1
ninja install || exit 1
popd
export PKG_CONFIG_PATH=$(pwd)/build/meson-private:${PKG_CONFIG_PATH}
else