From 115b3fa28f0ff6f470ccc1406a7ae6021e99490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 6 Mar 2018 11:34:36 +0200 Subject: [PATCH] Update Travis build script The actual build scripts for MaxScale are now used to prepare the build environment. This should make the Travis CI build easier to maintain. --- .travis/build_maxscale.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis/build_maxscale.sh b/.travis/build_maxscale.sh index 916b8d37c..153ccb6e3 100644 --- a/.travis/build_maxscale.sh +++ b/.travis/build_maxscale.sh @@ -9,14 +9,17 @@ echo TRAVIS_BUILD_DIR: ${TRAVIS_BUILD_DIR} +# Configure the build environment +./BUILD/install_build_deps.sh + mkdir build cd build -cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=Y -DBUILD_AVRO=N +cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=Y make -make test -sudo make install +make test || exit 1 +sudo make install sudo ./postinst maxscale --version