-
Notifications
You must be signed in to change notification settings - Fork 1
/
bitbucket-pipelines.yml
86 lines (85 loc) · 6.44 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Use our custom Docker image with all scientific tools pre-loaded
image: vijaysm/scientific:latest
pipelines:
default:
- step:
script:
# Setup the build pipeline
- cd $BITBUCKET_CLONE_DIR && export CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif77 F90=mpif90
# Setup cython properly
- easy_install pip
- pip install cython --user --force-reinstall --upgrade
# AutoTools Static Library Builds
- rm -rf build_atools build_cmake && mkdir -p build_atools build_cmake
# Configure and build with Autotools
- autoreconf -fi && echo "Running the Autotools Build System Static Library Build"
- cd build_atools && ../configure --with-mpi --enable-static --enable-optimize --enable-tools --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/mpich --with-netcdf=/usr --with-metis=/usr
- make distcheck V=1
# Now configure with CMake build system
# CMake Shared Library Builds
- cd ../build_cmake && echo "Running the CMake Shared Build System"
- cmake .. -DCMAKE_C_FLAGS="-fPIC -DPIC" -DCMAKE_CXX_FLAGS="-fPIC -DPIC" -DBUILD_SHARED_LIBS=ON -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined" -DENABLE_MPI=ON -DMPIHOME=/usr -DENABLE_PYMOAB=ON -DENABLE_HDF5=ON -DHDF5_ROOT=/usr/lib/x86_64-linux-gnu/hdf5/mpich -DENABLE_NETCDF=OFF -DENABLE_METIS=ON -DMETIS_DIR=/usr
- make all test VERBOSE=1
- make dist
# Successfully finished both Autotools and CMake checks
- echo "All done!"
branches:
master:
- step:
script:
# Setup the build pipeline
- cd $BITBUCKET_CLONE_DIR && export CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif77 F90=mpif90
# Setup cython properly
- easy_install pip
- pip install cython --user --force-reinstall --upgrade
# AutoTools Static Library Builds
- rm -rf build_atools build_cmake && mkdir -p build_atools build_cmake
# Configure and build with Autotools
- autoreconf -fi && echo "Running the Autotools Build System Static Library Build"
- cd build_atools && ../configure --with-mpi --enable-static --enable-optimize --enable-tools --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/mpich --with-netcdf=/usr --with-metis=/usr
- make distcheck V=1
# AutoTools Shared Library Builds
- make distclean && echo "Running the Autotools Build System Shared Library Build with Python-Enabled"
- ../configure --with-mpi --enable-shared --enable-optimize --enable-tools --enable-pymoab --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/mpich --with-netcdf=/usr --with-metis=/usr
- make distcheck V=1
# Now configure with CMake build system
# CMake Static Library Builds
- cd ../build_cmake && echo "Running the CMake Static Build System"
- 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/lib/x86_64-linux-gnu/hdf5/mpich -DENABLE_NETCDF=OFF -DENABLE_METIS=ON -DMETIS_DIR=/usr
- make all test VERBOSE=1
- make dist
# CMake Shared Library Builds
- cd ../ && rm -rf build_cmake && mkdir -p build_cmake && cd build_cmake && echo "Running the CMake Shared Build System"
- cmake .. -DCMAKE_C_FLAGS="-fPIC -DPIC" -DCMAKE_CXX_FLAGS="-fPIC -DPIC" -DBUILD_SHARED_LIBS=ON -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined" -DENABLE_MPI=ON -DMPIHOME=/usr -DENABLE_PYMOAB=ON -DENABLE_HDF5=ON -DHDF5_ROOT=/usr/lib/x86_64-linux-gnu/hdf5/mpich -DENABLE_NETCDF=OFF -DENABLE_METIS=ON -DMETIS_DIR=/usr
- make all test VERBOSE=1
- make dist
# Successfully finished both Autotools and CMake checks
- echo "All done!"
develop:
- step:
script:
# Setup the build pipeline
- cd $BITBUCKET_CLONE_DIR && export CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif77 F90=mpif90
# AutoTools Static Library Builds
- rm -rf build_atools build_cmake && mkdir -p build_atools build_cmake
# Configure and build with Autotools
- autoreconf -fi && echo "Running the Autotools Build System Static Library Build"
- cd build_atools && ../configure --with-mpi --enable-static --enable-optimize --enable-tools --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/mpich --with-netcdf=/usr --with-metis=/usr
- make distcheck V=1
# AutoTools Shared Library Builds
- make distclean && echo "Running the Autotools Build System Shared Library Build with Python-Enabled"
- ../configure --with-mpi --enable-shared --enable-optimize --enable-tools --enable-pymoab --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/mpich --with-netcdf=/usr --with-metis=/usr
- make distcheck V=1
# Now configure with CMake build system
# CMake Static Library Builds
- cd ../build_cmake && echo "Running the CMake Static Build System"
- 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/lib/x86_64-linux-gnu/hdf5/mpich -DENABLE_NETCDF=OFF -DENABLE_METIS=ON -DMETIS_DIR=/usr
- make all test VERBOSE=1
- make dist
# CMake Shared Library Builds
- cd ../ && rm -rf build_cmake && mkdir -p build_cmake && cd build_cmake && echo "Running the CMake Shared Build System"
- cmake .. -DCMAKE_C_FLAGS="-fPIC -DPIC" -DCMAKE_CXX_FLAGS="-fPIC -DPIC" -DBUILD_SHARED_LIBS=ON -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined" -DENABLE_MPI=ON -DMPIHOME=/usr -DENABLE_PYMOAB=ON -DENABLE_HDF5=ON -DHDF5_ROOT=/usr/lib/x86_64-linux-gnu/hdf5/mpich -DENABLE_NETCDF=OFF -DENABLE_METIS=ON -DMETIS_DIR=/usr
- make all test VERBOSE=1
- make dist
# Successfully finished both Autotools and CMake checks
- echo "All done!"