Skip to content

Commit

Permalink
azure-pipelines.yml: skip ssh tests on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesg committed Aug 30, 2020
1 parent 2a44dce commit 63848e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ steps:
RELEASE_TESTING: 1
NETWORK_TESTING: 1
AUTOMATED_TESTING: 1
SSH_TESTING: 1
displayName: 'Build/Test (Linux)'

- script: |
Expand All @@ -116,4 +117,5 @@ steps:
RELEASE_TESTING: 1
NETWORK_TESTING: 1
AUTOMATED_TESTING: 1
SSH_TESTING: 0
displayName: 'Build/Test (macOS)'
6 changes: 6 additions & 0 deletions t/10-clone.t
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ if ($features{'ssh'} == 0) {
exit;
}

if (!$ENV{SSH_TESTING}) {
diag("SSH testing not available, skipping SSH clone tests");
done_testing;
exit;
}

my $remote_path = rel2abs(catfile('t', 'test_repo'));
my $remote_port = $ENV{AUTHOR_TESTING} ? 22 : 2222;
my $remote_url = "ssh://$ENV{USER}\@localhost:$remote_port$remote_path";
Expand Down
6 changes: 6 additions & 0 deletions t/19-push.t
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ if ($features{'ssh'} == 0) {
exit;
}

if (!$ENV{SSH_TESTING}) {
diag("SSH testing not available, skipping SSH clone tests");
done_testing;
exit;
}

my $remote_path = rel2abs(catfile('t', 'test_repo'));
my $remote_port = $ENV{AUTHOR_TESTING} ? 22 : 2222;
my $remote_url = "ssh://$ENV{USER}\@localhost:$remote_port$remote_path";
Expand Down

0 comments on commit 63848e6

Please sign in to comment.