Skip to content

Commit

Permalink
Enforce --env gnu with --codecov, and check if curl is available
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-dc committed May 18, 2018
1 parent 84b3fc8 commit 47c9b2a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion icepack.setup
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ DESCRIPTION
--testid : test ID, user-defined id for testing (REQUIRED with --test or --suite)
--diff : generate comparison against another case
--report : automatically post results when tests are complete
--codecov : generate and report test coverage metrics when tests are complete
--codecov : generate and report test coverage metrics when tests are complete,
requires GNU compiler (--env gnu)
EXAMPLES
icepack.setup -c caseB -m gordon -e cray -s diag1,debug
Expand Down Expand Up @@ -263,6 +264,16 @@ if ($codecov == 1 && $testsuite == $spval) then
exit -1
endif

if ($codecov == 1 && "$compilers" != "gnu") then
echo "${0}: ERROR in arguments, must use --env gnu with --codecov"
exit -1
endif

if ($codecov == 1 && `where curl` == "") then
echo "${0}: ERROR 'curl' is required for --codecov"
exit -1
endif

if ($testsuite == $spval) then
if ("$compilers" =~ "*,*") then
echo "${0}: ERROR in arguments, cannot set multiple compilers without --suite"
Expand Down

0 comments on commit 47c9b2a

Please sign in to comment.