Skip to content

Commit

Permalink
Include examples in coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Apr 25, 2020
1 parent 2e8a22a commit 2a76c5b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Coverage report
on:
push:
branches:
- master
on: push
jobs:
coverage:
runs-on: ubuntu-latest
Expand All @@ -14,15 +11,16 @@ jobs:
pip install --user wheel
pip install --user cpp-coveralls
- name: Compile
env:
CXXFLAGS: -O1 -fprofile-arcs -ftest-coverage
LDFLAGS: -lgcov
run: |
cmake -DBOOST_ROOT=/usr .
./autogen.sh
./configure --disable-shared CXXFLAGS='-O1 -fprofile-arcs -ftest-coverage' LDFLAGS='-lgcov'
make -j 2
- name: Test
- name: Run tests
run: |
./test-suite/quantlib-test-suite --log_level=message
- name: Run examples
run: |
make -C Examples check-examples
- name: Upload coverage to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALL_TOKEN }}
Expand Down

0 comments on commit 2a76c5b

Please sign in to comment.