Skip to content

Commit e40a385

Browse files
committed
let codecov.io run gcov
- This will run gcov on each *.gcno file it finds and upload all of them. Control what coverage gets shown on codecov.io and in percentage with browser plugin on github via the 'features' --> 'Ignore Files' setting on codecov.io - Simplify execution of build commands via bash "here string," (<<<)
1 parent e270e9f commit e40a385

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ install:
5353

5454
script:
5555
- echo $BUILD_SCRIPT
56-
- echo $BUILD_SCRIPT | bash -
56+
- bash <<<$BUILD_SCRIPT
5757

5858
after_success:
5959
- cd $TRAVIS_BUILD_DIR
60-
- if [[ $CODE_COVERAGE == [yY]* ]]; then gcov -o lib/ src/json_module.F90 && bash <(curl -s https://codecov.io/bash) ; fi
60+
- if [[ $CODE_COVERAGE == [yY]* ]]; then bash <(curl -s https://codecov.io/bash) ; fi
6161
- git config --global user.name "TRAVIS-CI-for-$(git --no-pager show -s --format='%cn' $TRAVIS_COMMIT)"
6262
- git config --global user.email "$(git --no-pager show -s --format='%ce' $TRAVIS_COMMIT)"
6363
- ./deploy.sh #handles updating documentation for master branch as well as tags

0 commit comments

Comments
 (0)