Skip to content

Add integration with codecov #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
language: generic

before_script:
- pip install --user codecov && codecov
- git clone https://github.com/albfan/bashcov.git
- cd bashcov/
- git checkout debug
- gem build bashcov.gemspec
- gem install bashcov-1.2.1.gem
- cd ..
- rm -rf bashcov/
- gem install codecov
- export PATH=$PATH:$PWD

script:
- bash <(curl -s https://codecov.io/bash)
11 changes: 11 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

a_function(){
echo "$1"
if [ "$1" = "1" ];
Expand All @@ -16,3 +18,12 @@ then
else
echo "missed"
fi

DATA="something"

cat << EOF
Code detect as
executed
$DATA
EOF