Skip to content

Commit

Permalink
Prevented harmless or expected failiures to result in failed test run.
Browse files Browse the repository at this point in the history
  • Loading branch information
matejak committed Jun 5, 2018
1 parent 58f3874 commit e687290
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ before_script:
- cd build

script:
- ../configure CFLAGS="--coverage -ftest-coverage -fprofile-arcs" LDFLAGS=-lgcov --enable-debug && build-wrapper-linux-x86-64 --out-dir bw-output make all
- ../configure CFLAGS="--coverage -ftest-coverage -fprofile-arcs" LDFLAGS=-lgcov --enable-debug
- build-wrapper-linux-x86-64 --out-dir bw-output make all || true # Will always fail builds on forked repositories.
- make -k check VERBOSE=true || { test "$SEND_COVERAGE_EVEN_IF_TESTS_FAIL" = yes && curl -s https://codecov.io/bash > cov.sh && bash cov.sh -x "$GCOV"; }
- bash ../tests/recursively_generate_gcov.sh .
- cd .. && sonar-scanner
- bash ../tests/recursively_generate_gcov.sh . || true # Failures that occur here are harmless
- cd .. && sonar-scanner || true # Will always fail builds on forked repositories.

after_success:
- curl -s https://codecov.io/bash > cov.sh && bash cov.sh -x "$GCOV"
Expand Down

0 comments on commit e687290

Please sign in to comment.