Skip to content

Commit

Permalink
Try enabling codecov for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
atomashpolskiy committed Dec 6, 2017
1 parent 21eb20a commit bbd2d6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ codecov:
coverage:
precision: 2
round: down
range: "50...90"
range: "50...90"

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
branches: null
2 changes: 1 addition & 1 deletion script/travis-publish-codecov.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if [ "$TRAVIS_REPO_SLUG" == "atomashpolskiy/bt" ] && [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$MAIN_BUILD" == "true" ]; then
if [ "$TRAVIS_REPO_SLUG" == "atomashpolskiy/bt" ] && [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$MAIN_BUILD" == "true" ]; then

bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy

Expand Down

0 comments on commit bbd2d6b

Please sign in to comment.