# 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:10.2 pipelines: default: - parallel: - step: script: # Print the Linux version. - uname -a # Print the gcc version. - gcc --version # Install a CMake 3.0.2 version. #- apt-get update -qq #- apt-get install cmake -y # Alternatively you could install a CMake 3.2.2 version through PPA repository. - apt-get update -qq - apt-get install software-properties-common -y # Add PPA repository. #- echo 'deb http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu trusty main' | tee -a /etc/apt/sources.list.d/cmake.list #- apt-get update -qq - apt-get install cmake -y --force-yes # Print the CMake version. - cmake --version - 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