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:
20
ci-scripts/install-latan.sh
Executable file
20
ci-scripts/install-latan.sh
Executable 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
|
||||
Reference in New Issue
Block a user