-
Notifications
You must be signed in to change notification settings - Fork 36
69 lines (68 loc) · 1.69 KB
/
ci.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on: [push]
jobs:
build-ub1804:
name: Build on Ubuntu 18.04
runs-on: ubuntu-18.04
strategy:
matrix:
fs-backend: [ 'FS_BACKEND=ON', 'FS_BACKEND=OFF' ]
steps:
- name: Install dependecies
run: |
sudo apt-get update -y &&
sudo apt-get install -yy --no-install-recommends \
cmake \
clang-7 \
doxygen \
git \
gcc-8 \
g++-8 \
libcppunit-dev \
libboost-all-dev \
libhdf5-dev \
libhdf5-serial-dev \
libyaml-cpp-dev \
libstdc++-8-dev \
python3-pip \
python3-setuptools \
python3-wheel \
valgrind
- name: Install coveralls
run: |
sudo pip3 install cpp-coveralls
- uses: actions/checkout@v1
- name: Build
run: |
mkdir build
pushd build
cmake -DBUILD_${{ matrix.fs-backend }} -DBUILD_COVERAGE=ON ..
make
make test
popd
- name: Coverage
run: |
coveralls -b build -E ".*CMakeFiles.*" -e cli -e test -e tmp -e docs --gcov-options '\-lp'
build-macos:
name: Build on macOS
runs-on: macOS-10.14
strategy:
matrix:
fs-backend: [ 'FS_BACKEND=ON', 'FS_BACKEND=OFF' ]
steps:
- name: Install dependecies
run: |
brew update
brew install cmake boost cppunit hdf5 yaml-cpp
- name: Install coveralls
run: |
pip install --upgrade pip
pip install --user cpp-coveralls
- uses: actions/checkout@v1
- name: Build
run: |
mkdir build
cd build
cmake -DBUILD_${{ matrix.fs-backend }} ..
make
make test