Commit 910e7f2b authored by Karen Etheridge's avatar Karen Etheridge

Fix use of travis environment variables, to properly detect pull requests

parent 454a2039
......@@ -270,7 +270,7 @@ skip = ^Moose::Meta::TypeConstraint::Union$
[Test::ChangesHasContent]
[Substitute]
file = xt/release/changes_has_content.t
code = s{^(note 'Checking Changes')}{my \$branch_name = \$ENV\{TRAVIS_BRANCH\};\nchomp\(\$branch_name = \`git rev-parse --abbrev-ref HEAD\`\) if not \$branch_name;\nlocal \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n if \(\$branch_name \|\| ''\) eq 'master';\n\n$1}
code = s{^(note 'Checking Changes')}{if \(\$ENV\{TRAVIS_PULL_REQUEST\} eq 'false'\) \{\n chomp\(my \$branch_name = \(\$ENV\{TRAVIS_BRANCH\} || \`git rev-parse --abbrev-ref HEAD\`\)\);\n \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n if \(\$branch_name \|\| ''\) eq 'master';\n\}\n\n$1}
;[CheckPrereqsIndexed]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment