Skip to content

Commit

Permalink
Fix develop test failiures (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
CRogers authored May 4, 2021
1 parent 671c14b commit 7b7c34e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ private EnvironmentVariables() {}
static Optional<String> envVarOrFromTestingProperty(Project project, String envVar) {
Optional<String> fromTestingProp = Optional.ofNullable((String) project.findProperty("__TESTING_" + envVar));

if (fromTestingProp.equals(Optional.of("unset"))) {
return Optional.empty();
}

if (fromTestingProp.isPresent()) {
return fromTestingProp;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,12 @@ class ExternalPublishRootPluginIntegrationSpec extends IntegrationSpec {
publishProject(type)

when:
def errorMessage = runTasksWithFailure(":${type}:publish").failure.cause.cause.message
def errorMessage = runTasksWithFailure(
":${type}:publish",
'-P__TESTING_GPG_SIGNING_KEY=unset',
'-P__TESTING_GPG_SIGNING_KEY_ID=unset',
'-P__TESTING_GPG_SIGNING_KEY_PASSWORD=unset',
).failure.cause.cause.message

then:
errorMessage == 'The required environment variables to sign the release could not be found. ' +
Expand Down

0 comments on commit 7b7c34e

Please sign in to comment.