1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-05-01 17:35:55 +01:00

Travis update

This commit is contained in:
Antonin Portelli 2016-04-11 19:16:38 +01:00
parent cdf516b5ac
commit 1400f6e257
7 changed files with 40 additions and 11 deletions

View File

@ -71,7 +71,7 @@ install:
- export CC=$CC$VERSION - export CC=$CC$VERSION
- export CXX=$CXX$VERSION - export CXX=$CXX$VERSION
- cd ci-scripts - cd ci-scripts
- ./install-deps.sh - ./install-deps.sh `pwd`/local
- cd .. - cd ..
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export LD_LIBRARY_PATH=${LATDIR}/ci-scripts/local/lib:$LD_LIBRARY_PATH; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export LD_LIBRARY_PATH=${LATDIR}/ci-scripts/local/lib:$LD_LIBRARY_PATH; fi

View File

@ -1,10 +1,16 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix> {osx|linux}" 1>&2
exit 1
fi
PREFIX=$1
set -ex set -ex
mkdir -p local/build mkdir -p local/build
for d in nlopt minuit hdf5; do for d in nlopt minuit hdf5; do
if [ ! -e local/.built.${d} ]; then if [ ! -e local/.built.${d} ]; then
./install-${d}.sh ./install-${d}.sh ${PREFIX}
fi fi
done done
./install-latcore.sh ./install-latcore.sh ${PREFIX}

View File

@ -2,6 +2,12 @@
NAME='hdf5-1.8.16' NAME='hdf5-1.8.16'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix> {osx|linux}" 1>&2
exit 1
fi
PREFIX=$1
set -ex set -ex
INITDIR=`pwd` INITDIR=`pwd`
cd local/build cd local/build
@ -9,7 +15,7 @@ wget http://www.hdfgroup.org/ftp/HDF5/current/src/${NAME}.tar.gz
tar -xzvf ${NAME}.tar.gz tar -xzvf ${NAME}.tar.gz
mkdir ${NAME}/build mkdir ${NAME}/build
cd ${NAME}/build cd ${NAME}/build
../configure --prefix=${INITDIR}/local --enable-cxx ../configure --prefix=${PREFIX} --enable-cxx
make -j4 make -j4
make install make install
cd ${INITDIR}/local cd ${INITDIR}/local

View File

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

View File

@ -1,5 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix> {osx|linux}" 1>&2
exit 1
fi
PREFIX=$1
set -ex set -ex
INITDIR=`pwd` INITDIR=`pwd`
cd local/build cd local/build
@ -13,7 +19,7 @@ else
./bootstrap.sh ./bootstrap.sh
fi fi
cd build cd build
../configure --prefix=${INITDIR}/local ../configure --prefix=${PREFIX}
make -j4 make -j4
make install make install
cd ${INITDIR} cd ${INITDIR}

View File

@ -2,6 +2,12 @@
NAME='Minuit2-5.34.14' NAME='Minuit2-5.34.14'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix> {osx|linux}" 1>&2
exit 1
fi
PREFIX=$1
set -ex set -ex
INITDIR=`pwd` INITDIR=`pwd`
cd local/build cd local/build
@ -9,7 +15,7 @@ wget http://www.cern.ch/mathlibs/sw/5_34_14/Minuit2/${NAME}.tar.gz
tar -xzvf ${NAME}.tar.gz tar -xzvf ${NAME}.tar.gz
mkdir -p ${NAME}/build mkdir -p ${NAME}/build
cd ${NAME}/build cd ${NAME}/build
../configure --prefix=${INITDIR}/local --disable-openmp ../configure --prefix=${PREFIX} --disable-openmp
make -j4 make -j4
make install make install
cd ${INITDIR}/local cd ${INITDIR}/local

View File

@ -2,6 +2,12 @@
NAME='nlopt-2.4.2' NAME='nlopt-2.4.2'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix> {osx|linux}" 1>&2
exit 1
fi
PREFIX=$1
set -ex set -ex
INITDIR=`pwd` INITDIR=`pwd`
cd local/build cd local/build
@ -9,7 +15,7 @@ wget http://ab-initio.mit.edu/nlopt/${NAME}.tar.gz
tar -xzvf ${NAME}.tar.gz tar -xzvf ${NAME}.tar.gz
mkdir -p ${NAME}/build mkdir -p ${NAME}/build
cd ${NAME}/build cd ${NAME}/build
../configure --prefix=${INITDIR}/local --with-cxx --without-guile --without-python --without-octave --without-matlab --with-pic ../configure --prefix=${PREFIX} --with-cxx --without-guile --without-python --without-octave --without-matlab --with-pic
make -j4 make -j4
make install make install
cd ${INITDIR}/local cd ${INITDIR}/local