-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (37 loc) · 935 Bytes
/
coveralls.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
name: Coverage CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-gcc7-coveralls:
runs-on: ubuntu-latest
name: GNU GCC 7 and run coveralls
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build easy
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-7 -DEASY_TEST=ON -DENABLE_COVERAGE=ON ..
make run_tests
- name: Run tests
run: |
cd build
./test/run_tests "~[quality]"
- name: Run lcov
run: |
sudo apt-get install lcov
lcov -t "result" -o lcov.info -c -d .
lcov -e lcov.info "*easy/include*" -o lcov_filtered.info
lcov -l lcov_filtered.info
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov_filtered.info