-
Notifications
You must be signed in to change notification settings - Fork 6
/
circle.yml
49 lines (48 loc) · 1.58 KB
/
circle.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
43
44
45
46
47
48
version: 2
jobs:
build:
working_directory: /home/cbgeo/research/lbm-dem
docker:
- image: quay.io/cbgeo/lbmdem
steps:
- checkout
# GCC 6.3
- run:
name: GCC-6 build
command: |
mkdir -p build
[ "$(ls -A build)" ] && rm -rf build/*
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DKOKKOS_ROOT=/opt/kokkos/ ..
make -j8
ctest -VV
# Clang 3.9
- run:
name: Clang-3.9 build
command: |
mkdir -p build
[ "$(ls -A build)" ] && rm -rf build/*
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DKOKKOS_ROOT=/opt/kokkos/ ..
make -j8
ctest -VV
# cppcheck
- run:
name: cppcheck
command: |
cppcheck --version
cppcheck --enable=warning --inconclusive --force --std=c++11 src/*.cc include/*.h include/*.tcc --error-exitcode=1
# codecoverage
- run:
name: codecov.io
command: |
mkdir -p build
[ "$(ls -A build)" ] && rm -rf build/*
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DKOKKOS_ROOT=/opt/kokkos/ -DENABLE_COVERAGE=On ..
make -j8
./lbmdem
ctest -VV
make gcov
make lcov
bash <(curl -s https://codecov.io/bash) -X gcov