Skip to content

Commit

Permalink
Enable Code Coverage - resolves #36 (#414)
Browse files Browse the repository at this point in the history
* Trying post build

* Enable CodeCov

* Update build.sh
  • Loading branch information
woody-apple authored Apr 18, 2020
1 parent 4544c9a commit f5e668f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ before_install:
script:
- ./integrations/ci-tools/build.sh

after_success:
- ./integrations/ci-tools/post_build_success.sh

# Note: To add new job types, add it to the matrix below, with a unique TASK varable, then update the build.sh to do what you want during that task

jobs:
Expand All @@ -29,6 +32,9 @@ jobs:
- stage: Tests
name: "Setup Payload Tests"
env: TASK="run-setup-payload-tests"
- stage: Deployment Checks
name: "Run Code Coverage"
env: TASK="run-code-coverage"
- stage: Deployment Checks
name: "Distribution Check"
env: TASK="build-distribution-check"
Expand Down
7 changes: 7 additions & 0 deletions integrations/ci-tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ case "$TASK" in
docker_run_bash_command
;;

run-code-coverage)
write_bash_template
write_bash_bootstrap
write_bash_command 'make -C build/default coverage'
docker_run_bash_command
;;

run-crypto-tests)
write_bash_template
write_bash_bootstrap
Expand Down
3 changes: 3 additions & 0 deletions integrations/ci-tools/post_build_success.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

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

0 comments on commit f5e668f

Please sign in to comment.