# 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: gcc pipelines: default: - parallel: - step: script: # Print the Linux version. - uname -a # Print the gcc version. - gcc --version - apt-get update -qq - apt-get install gfortran -qq -y # Install a CMake 3.0.2 version. - apt-get install cmake -y --force-yes # Print the CMake version. - cmake --version # Install the necessary libraries - apt-get install fftw3-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