Skip to content
Merged
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
6 changes: 4 additions & 2 deletions .testing/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
SHELL = bash
MPIRUN ?= mpirun

-include config.mk

#---
# Dependencies
BASE = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/..
Expand Down Expand Up @@ -217,13 +219,13 @@ endif

define STAT_RULE
$$(BASE)/.testing/%/ocean.stats.$(1): $$(BUILD)/$(2)/MOM6
if [ $(3) ]; then find build -name *.gcda -exec rm -f '{}' \; ; fi
if [ $(3) ]; then find $$(BUILD) -name *.gcda -exec rm -f '{}' \; ; fi
mkdir -p $$(@D)/RESTART
echo $(4) > $$(@D)/MOM_override
cd $$(@D) && $$(call MPIRUN_CMD,$(5)) -n $(6) $$< 2> debug.out
cp $$(@D)/ocean.stats $$@
> $$(@D)/MOM_override
if [ $(3) ]; then bash <(curl -s https://codecov.io/bash) -n $$@; fi
if [ $(3) ]; then cd $$(BASE) && bash <(curl -s https://codecov.io/bash) -n $$@; fi

$$(BASE)/.testing/%/chksum_diag.$(1): $$(BASE)/.testing/%/ocean.stats.$(1)
cp $$(@D)/chksum_diag $$@
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ jobs:
REPORT_COVERAGE=true
- echo -en 'travis_fold:end:script.1\\r'
- echo 'Running tests...' && echo -en 'travis_fold:start:script.2\\r'
- make DO_REGRESSION_TESTS=${TRAVIS_IS_PR} test
- make test \
DO_REGRESSION_TESTS=${TRAVIS_IS_PR} \
REPORT_COVERAGE=true
- echo -en 'travis_fold:end:script.2\\r'