diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 21ac1bd3b0e52d97b348746dcd2adc3991d681cc..5739e980590d226340be2e385481fc03fde35cca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,39 +15,11 @@ before_script: test_min: - stage: test - script: - - nosetests -vv - - nosetests3 -vv - -test_mpi: - stage: test - script: - - ci/install_pyHealpix.sh - - ci/install_mpi4py.sh - - nosetests -vv - - nosetests3 -vv - -test_mpi_fftw: - stage: test - script: - - ci/install_pyHealpix.sh - - ci/install_mpi4py.sh - - ci/install_pyfftw.sh - - nosetests -vv - - nosetests3 -vv - -test_mpi_fftw_hdf5: stage: test script: - ci/install_pyHealpix.sh - - ci/install_mpi4py.sh - - ci/install_pyfftw.sh - - ci/install_h5py.sh - - mpiexec --allow-run-as-root -n 2 nosetests -x - - mpiexec --allow-run-as-root -n 2 nosetests3 -x - - mpiexec --allow-run-as-root -n 4 nosetests -x - - mpiexec --allow-run-as-root -n 4 nosetests3 -x + - nosetests + - nosetests3 - nosetests -x --with-coverage --cover-package=nifty --cover-branches - > coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }' diff --git a/ci/install_basics.sh b/ci/install_basics.sh index af2a2c23d07372eb27cd247c1a66319d5882dffd..1bc14dbac19af1c3fcde631313e41d4d70ff99d8 100644 --- a/ci/install_basics.sh +++ b/ci/install_basics.sh @@ -1,3 +1,3 @@ #!/bin/bash -apt-get install -y build-essential python python-pip python-dev git autoconf libtool gsl-bin libgsl-dev wget python3 python3-pip python3-dev python3-nose +apt-get install -y build-essential python python-pip python-dev git autoconf libtool gsl-bin libgsl-dev wget python3 python3-pip python3-dev python3-nose libatlas-base-dev libfftw3-bin libfftw3-dev libfftw3-double3 libfftw3-long3 libfftw3-mpi-dev libfftw3-mpi3 libfftw3-quad3 libfftw3-single3 python-numpy python3-numpy diff --git a/ci/install_h5py.sh b/ci/install_h5py.sh deleted file mode 100644 index 6702ca879bd5710fc269319b067c598ea0bbff53..0000000000000000000000000000000000000000 --- a/ci/install_h5py.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -apt-get install -y libhdf5-10 libhdf5-dev libhdf5-openmpi-10 libhdf5-openmpi-dev hdf5-tools -CC=mpicc HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi HDF5_MPI="ON" pip install --no-binary=h5py h5py diff --git a/ci/install_mpi4py.sh b/ci/install_mpi4py.sh deleted file mode 100644 index 41a650d0efc551eb8e59ea798b2bfb76990ae683..0000000000000000000000000000000000000000 --- a/ci/install_mpi4py.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -apt-get install -y openmpi-bin libopenmpi-dev -pip install mpi4py -pip3 install mpi4py diff --git a/ci/install_pyHealpix.sh b/ci/install_pyHealpix.sh index 1e4fccc0a1f2e47e90e64ffde4c3de5789d07247..0c66b40dbaa7a608d7637839c3e93f902270e8da 100644 --- a/ci/install_pyHealpix.sh +++ b/ci/install_pyHealpix.sh @@ -2,5 +2,7 @@ git clone https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git (cd pyHealpix && autoreconf -i && ./configure --enable-openmp && make -j4 install) -(cd pyHealpix && autoreconf -i && PYTHON=python3 ./configure --enable-openmp && make -j4 install) +rm -rf pyHealpix +git clone https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git +(cd pyHealpix && autoreconf -i && PYTHON=python3 PYTHON_CONFIG=python3-config ./configure --enable-openmp && make -j4 install) rm -rf pyHealpix diff --git a/ci/install_pyfftw.sh b/ci/install_pyfftw.sh deleted file mode 100644 index ab43961e948ed306e939361255ce01c1fc241ed3..0000000000000000000000000000000000000000 --- a/ci/install_pyfftw.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -apt-get install -y libatlas-base-dev libfftw3-bin libfftw3-dev libfftw3-double3 libfftw3-long3 libfftw3-mpi-dev libfftw3-mpi3 libfftw3-quad3 libfftw3-single3 - -git clone -b mpi https://github.com/fredros/pyFFTW.git -(cd pyFFTW && CC=mpicc python setup.py build_ext install) -(cd pyFFTW && CC=mpicc python3 setup.py build_ext install) -rm -rf pyFFTW diff --git a/ci/requirements.txt b/ci/requirements.txt index c24a1265b4b484ff2f34c043883e2de67d9dd1eb..1734a57b3a819256d6ce08e83ca4ae2cf1b1887c 100644 --- a/ci/requirements.txt +++ b/ci/requirements.txt @@ -1,10 +1,7 @@ -numpy -cython matplotlib plotly nose parameterized coverage -git+https://gitlab.mpcdf.mpg.de/ift/mpi_dummy.git -git+https://gitlab.mpcdf.mpg.de/ift/keepers.git -git+https://gitlab.mpcdf.mpg.de/ift/D2O.git +pyfftw +future diff --git a/ci/requirements_extras.txt b/ci/requirements_extras.txt deleted file mode 100644 index f0e407a7813488b8f8b8e0e3606f5944f4151c2b..0000000000000000000000000000000000000000 --- a/ci/requirements_extras.txt +++ /dev/null @@ -1 +0,0 @@ -ipython==5.3.0