add sl compile instructions
This commit is contained in:
parent
20cbbd8f40
commit
52adaee7f0
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue