1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-12-23 01:04:29 +00:00

CI with Travis and loads of portability fixes

This commit is contained in:
2016-04-08 00:42:11 +01:00
parent 8dd3b110e0
commit cdf516b5ac
10 changed files with 214 additions and 12 deletions

20
ci-scripts/install-latan.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
if (( $# != 2 )); then
echo "usage: `basename $0` <prefix> {osx|linux}" 1>&2
exit 1
fi
LATAN_PREFIX=$1
OS=$2
set -ex
PREFIX=`pwd`/local
./install-deps.sh
cd ..
./bootstrap.sh
mkdir -p build
cd build
if [[ "$OS" == "osx" ]]; then EXTRA_FLAGS='--with-gsl=/usr/local'; fi
../configure --prefix=$LATAN_PREFIX --with-minuit=$PREFIX --with-nlopt=$PREFIX --with-latcore=$PREFIX --with-hdf5=$PREFIX $EXTRA_FLAGS
make -j4
make install