1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-16 13:33:45 +02:00
monofonIC/bitbucket-pipelines.yml

53 lines
1.5 KiB
YAML

# Template C++ Application
# This template allows you to validate your C++ application.
# The workflow allows running tests and code linting on the default branch.
image: debian:latest
pipelines:
default:
- parallel:
- step:
script:
# Print the Linux version.
- uname -a
# Print the gcc version.
- apt-get update -qq
- apt-get install gcc g++ gfortran -qq -y
- gcc --version
# Install a CMake 3.0.2 version.
- apt-get install git cmake pkg-config cmake-data -y --force-yes
# Print the CMake version.
- cmake --version
# Install the necessary libraries
- apt-get install libfftw3-mpi-dev libfftw3-dev -y
- apt-get install libgsl-dev -y
- apt-get install libhdf5-serial-dev -y
- apt-get install libopenmpi-dev -y
- mkdir build
- cd build
# Call the CMake.
- cmake ..
# Build the project.
- make
#pipelines:
# default:
# - parallel:
# - step:
# name: Test
# script:
# - make check
# - step:
# name: Lint
# script:
# # apt update && apt -y install cppcheck && cppcheck .
# - make lint
# - step:
# name: Build and Run
# script:
# - make compile
# # Execute your C++ application after compilation to check success
# - make distcheck