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.
This commit is contained in:
Markus Mäkelä 2018-03-06 11:34:36 +02:00
parent af059e2be5
commit 115b3fa28f
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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