From 52adaee7f0710bd2318f4e0196587fd4eaf3180e Mon Sep 17 00:00:00 2001 From: Faruk D Date: Tue, 28 Aug 2018 14:54:33 +0200 Subject: [PATCH] add sl compile instructions --- .travis.yml | 2 ++ build-tests/sl/compile-sl.sh | 32 ++++++++++++++++++++++++++++++++ build-tests/sl/prepare-sl.sh | 11 +++++++++++ 3 files changed, 45 insertions(+) create mode 100755 build-tests/sl/compile-sl.sh create mode 100755 build-tests/sl/prepare-sl.sh diff --git a/.travis.yml b/.travis.yml index 4f7373b..621d711 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,4 +20,6 @@ script: - docker exec --env BRANCH=$BRANCH ubuntu-build /bin/bash -c "/travis/workdir/build-tests/ubuntu/compile-ubuntu.sh" - docker exec --env BRANCH=$BRANCH arch-build /bin/bash -c "/travis/workdir/build-tests/arch/prepare-arch.sh" - docker exec --env BRANCH=$BRANCH arch-build /bin/bash -c "/travis/workdir/build-tests/arch/compile-arch.sh" + - docker exec --env BRANCH=$BRANCH sl-build /bin/bash -c "/travis/workdir/build-tests/sl/prepare-sl.sh" + - docker exec --env BRANCH=$BRANCH sl-build /bin/bash -c "/travis/workdir/build-tests/sl/compile-sl.sh" diff --git a/build-tests/sl/compile-sl.sh b/build-tests/sl/compile-sl.sh new file mode 100755 index 0000000..ff6027c --- /dev/null +++ b/build-tests/sl/compile-sl.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +echo "Building SageCal for Scientific Linux" && \ +echo "Branch --> $BRANCH" && \ +cd /travis/workdir + +# compile casacore first +mkdir -p /opt/soft/casacore/data +cd /opt/soft/casacore/data +wget -c ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar +tar zxfv WSRT_Measures.ztar && rm -f WSRT_Measures.ztar + +cd /tmp +git clone --progress --verbose https://github.com/casacore/casacore.git casacore_install +cd casacore_install + +mkdir casacore/build +cd casacore/build +cmake -DUSE_FFTW3=ON -DCMAKE_INSTALL_PREFIX=/opt/soft/casacore -DDATA_DIR=/opt/soft/casacore/data -DUSE_OPENMP=ON \ + -DUSE_HDF5=ON -DBUILD_PYTHON=ON -DUSE_THREADS=ON .. +make -j4 +make install + +# compile sagecal +cd /travis/workdir && \ +mkdir build-sl && cd build-sl + +cmake .. -DENABLE_CUDA=OFF && \ +make -j4 && \ +ls -alsrt ./dist/bin && \ +./dist/bin/sagecal + diff --git a/build-tests/sl/prepare-sl.sh b/build-tests/sl/prepare-sl.sh new file mode 100755 index 0000000..e0e645c --- /dev/null +++ b/build-tests/sl/prepare-sl.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# add EPEL repository for openblas +yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm + +# install dependencies +yum -y install git pkgconfig cmake cmake-gui gcc-gfortran gcc-c++ flex bison \ + openblas openblas-devel glib2-devel lapack lapack-devel cfitsio cfitsio-devel \ + wcslib wcslib-devel ncurses ncurses-devel readline readline-devel\ + python-devel boost boost-devel fftw fftw-devel hdf5 hdf5-devel\ + numpy boost-python \ No newline at end of file