bitbucket-pipelines.yml 1.29 KB
Newer Older
1
# Use our custom Docker image with all scientific tools pre-loaded
2
image: vijaysm/scientific:latest
3

4
pipelines:
5
    default:
6 7 8 9 10 11 12 13 14 15
        - step:
            script:
                # Setup the build pipeline
                - export CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif77 F90=mpif90
                - rm -rf build_atools build_cmake
                - mkdir -p build_atools build_cmake
                # Configure and build with Autotools
                - echo "Running the Autotools Build System"
                - autoreconf -fi
                - cd build_atools
16
                - ../configure --with-mpi --enable-optimize --enable-tools --with-hdf5=/usr --with-netcdf=/usr --with-metis=/usr
17 18 19 20 21 22 23 24 25
                - make distcheck
                # Now configure with CMake build system
                - echo "Running the CMake Build System"
                - cd ../build_cmake
                - cmake .. -DCMAKE_C_FLAGS="-fPIC -DPIC" -DCMAKE_CXX_FLAGS="-fPIC -DPIC" -DBUILD_SHARED_LIBS=OFF -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined" -DENABLE_MPI=ON -DMPIHOME=/usr -DENABLE_HDF5=ON -DHDF5_ROOT=/usr -DENABLE_NETCDF=OFF -DENABLE_METIS=ON -DMETIS_DIR=/usr
                - make all test
                - make dist
                  # Successfully finished both Autotools and CMake checks
                - echo "All done!"