
The actual build scripts for MaxScale are now used to prepare the build environment. This should make the Travis CI build easier to maintain.
26 lines
653 B
Bash
26 lines
653 B
Bash
#!/bin/bash
|
|
|
|
|
|
# these environment variables are set in .travis.yml
|
|
# MARIADB_URL=https://downloads.mariadb.org/interstitial/mariadb-5.5.48/bintar-linux-glibc_214-x86_64/mariadb-5.5.48\-linux-glibc_214-x86_64.tar.gz/from/http%3A//mirror.netinch.com/pub/mariadb/
|
|
# MARIADB_TAR=mariadb-5.5.48-linux-glibc_214-x86_64.tar.gz
|
|
# MARIADB_DIR=mariadb-5.5.48-linux-x86_64
|
|
|
|
|
|
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
|
|
|
|
make
|
|
make test || exit 1
|
|
|
|
sudo make install
|
|
sudo ./postinst
|
|
maxscale --version
|