1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

Initial Bitbucket Pipelines configuration

This commit is contained in:
Oliver Hahn 2021-11-25 12:45:14 +00:00
parent f55a39dc23
commit 64e3504491

54
bitbucket-pipelines.yml Normal file
View file

@ -0,0 +1,54 @@
# 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