Skip to content

Commit

Permalink
Fix use of travis environment variables, to properly detect pull requ…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
karenetheridge committed May 15, 2018
1 parent 454a203 commit e189bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 \(not \$ENV\{TRAVIS_PULL_REQUEST\}\) \{\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]
Expand Down

0 comments on commit e189bf4

Please sign in to comment.