Skip to content

Commit ca7a09b

Browse files
committed
Merge pull request #109 from zbeekman/small-FoBiS-coverage-fix
Small FoBiS coverage fix
2 parents 530635d + e40a385 commit ca7a09b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ fi
237237
if [[ $CODE_COVERAGE == [yY]* ]]; then
238238
echo "Trying to compile with code coverage instrumentation."
239239
COVERAGE="-coverage"
240+
FCOMPILERFLAGS+=' -O0'
240241
fi
241242

242243
if [[ $CODE_PROFILE == [yY]* ]]; then

0 commit comments

Comments
 (0)