-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
42 lines (39 loc) · 1.26 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
# 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
definitions:
services:
docker:
memory: 2048
pipelines:
default:
# - parallel:
- step:
name: Build and test Run
image: rikorose/gcc-cmake
script:
- git submodule update --recursive --init
- apt-get update && apt-get install -y --no-install-recommends uuid-dev libssl-dev libz-dev libzmq5 libzmq3-dev
- mkdir _bld && cd _bld
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make -j10
# - ./rangex_test
- ./rangex_demo
- ctest --test-dir . --output-on-failure
caches:
- docker
artifacts:
- _bld/rangex_test
# Execute your C++ application after compilation to check success
services:
- docker
- step:
name: Lint
script:
- apt update && apt -y install cppcheck && cppcheck .
- echo OK make lint
# - step:
# name: Test
# script:
# - ctest --test-dir _bld/