Skip to content

Commit

Permalink
feat: add function to send test coverage to code climate
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Mar 9, 2024
1 parent 13bf492 commit 272a9ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ install_cc_test_reporter() {
cd ~-
}

# Sends test coverage to code climate
# Arg1: code climate identifier for authentication
send_coverage_to_cc() {
local CC_TEST_REPORTER_ID=$1
~/.local/bin/cc-test-reporter format-coverage -t lcov coverage/lcov.info
~/.local/bin/cc-test-reporter upload-coverage -r $CC_TEST_REPORTER_ID
}

# Make sure nvm is installed
# Arg1: a writable folder where to write downloaded files
# NOTE: also define 'yarn' as a default package, ie. it'll be automatically
Expand Down

0 comments on commit 272a9ba

Please sign in to comment.