Skip to content

Commit

Permalink
Merge branch 'release/0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Oct 13, 2019
2 parents 7f95fc9 + ce6f0f1 commit d8961a3
Show file tree
Hide file tree
Showing 81 changed files with 1,226 additions and 1,212 deletions.
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,39 @@

This addin for Cake allows you to work with Azure DevOps or Azure DevOps Server.

[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/cake-contrib/Cake.Tfs/blob/feature/build/LICENSE)
[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/cake-contrib/Cake.AzureDevOps/blob/feature/build/LICENSE)

## Information

| | Stable | Pre-release |
|:--:|:--:|:--:|
|GitHub Release|-|[![GitHub release](https://img.shields.io/github/release/cake-contrib/Cake.Tfs.svg)](https://github.com/cake-contrib/Cake.Tfs/releases/latest)|
|NuGet|[![NuGet](https://img.shields.io/nuget/v/Cake.Tfs.svg)](https://www.nuget.org/packages/Cake.Tfs)|[![NuGet](https://img.shields.io/nuget/vpre/Cake.Tfs.svg)](https://www.nuget.org/packages/Cake.Tfs)|
|GitHub Release|-|[![GitHub release](https://img.shields.io/github/release/cake-contrib/Cake.AzureDevOps.svg)](https://github.com/cake-contrib/Cake.AzureDevOps/releases/latest)|
|NuGet|[![NuGet](https://img.shields.io/nuget/v/Cake.AzureDevOps.svg)](https://www.nuget.org/packages/Cake.AzureDevOps)|[![NuGet](https://img.shields.io/nuget/vpre/Cake.AzureDevOps.svg)](https://www.nuget.org/packages/Cake.AzureDevOps)|

## Build Status

| | Develop | Master |
|:--:|:--:|:--:|
|AppVeyor Windows|[![Build status](https://ci.appveyor.com/api/projects/status/c0akmejs4b136s0o/branch/develop?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-tfs/branch/develop)|[![Build status](https://ci.appveyor.com/api/projects/status/c0akmejs4b136s0o/branch/master?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-tfs/branch/master)|
|Azure DevOps Windows|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=develop&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=master&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=master)|
|Azure DevOps Ubuntu|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=develop&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=master&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=master)|
|AppVeyor Windows|[![Build status](https://ci.appveyor.com/api/projects/status/45blf3csh70opuos/branch/develop?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-azuredevops/branch/develop)|[![Build status](https://ci.appveyor.com/api/projects/status/45blf3csh70opuos/branch/master?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-azuredevops/branch/master)|
|Azure DevOps Windows|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=develop&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=master&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=master)|
|Azure DevOps macOS|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=develop&jobName=macOS)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=master&jobName=macOS)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=master)|
|Azure DevOps Ubuntu|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=develop&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=master&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=master)|

## Demos

Click on the build server and repository links to see the build definition or source code and try out the addin yourself.

|Build Server|Repository| |
|:--:|:--:|:--:|
|[Azure Pipelines](https://dev.azure.com/pberger/Cake.AzureDevOps-Demo/_build?definitionId=8)|[Azure Repos](https://dev.azure.com/pberger/_git/Cake.AzureDevOps-Demo)|[![Build Status](https://dev.azure.com/pberger/Cake.AzureDevOps-Demo/_apis/build/status/Cake.AzureDevOps-Demo?branchName=master)](https://dev.azure.com/pberger/Cake.AzureDevOps-Demo/_build/latest?definitionId=8&branchName=master)|

## Code Coverage

[![Coverage Status](https://coveralls.io/repos/github/cake-contrib/Cake.Tfs/badge.svg?branch=develop)](https://coveralls.io/github/cake-contrib/Cake.Tfs?branch=develop)
[![Coverage Status](https://coveralls.io/repos/github/cake-contrib/Cake.AzureDevOps/badge.svg?branch=develop)](https://coveralls.io/github/cake-contrib/Cake.AzureDevOps?branch=develop)

## Quick Links

- [Documentation](https://cake-contrib.github.io/Cake.Tfs)
- [Documentation](https://cake-contrib.github.io/Cake.AzureDevOps)

## Chat Room

Expand All @@ -35,4 +44,4 @@ Come join in the conversation about this addin in our Gitter Chat Room

## Contributing

Contributions are welcome. See [Contribution Guidelines](CONTRIBUTING.md).
Contributions are welcome. See [Contribution Guidelines](CONTRIBUTING.md).
14 changes: 14 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ trigger:

pr:
- develop
- release/*
- hotfix/*

jobs:
- job: Windows
Expand All @@ -17,6 +19,18 @@ jobs:
.\build.ps1
exit $LASTEXITCODE
displayName: 'Cake Build'
- job: macOS
pool:
vmImage: 'macOS-10.14'
steps:
# To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
# https://go.microsoft.com/fwlink/?linkid=871629
- bash: |
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
displayName: 'Select Mono 5.18.1'
- bash: |
./build.sh
displayName: 'Cake Build'
- job: Ubuntu
pool:
vmImage: 'ubuntu-16.04'
Expand Down
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ if [ ! -d "$TOOLS_DIR" ]; then
mkdir "$TOOLS_DIR"
fi

# Print Mono version.
echo "Mono version:"
mono --version
echo ""

###########################################################################
# INSTALL .NET CORE CLI
###########################################################################
Expand Down
2 changes: 1 addition & 1 deletion docs/input/_Bottom.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="github-button">
<a href="https://github.com/cake-contrib/Cake.Tfs" target="_blank"><i class="fa fa-github"></i> GitHub</a>
<a href="https://github.com/cake-contrib/Cake.AzureDevOps" target="_blank"><i class="fa fa-github"></i> GitHub</a>
</div>
<script>
((window.gitter = {}).chat = {}).options = {
Expand Down
2 changes: 1 addition & 1 deletion docs/input/_Footer.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p class="text-muted">
Copyright &copy; Pascal Berger and <a href="https://github.com/cake-contrib/Cake.Tfs/graphs/contributors" target="_blank">contributors</a>.
Copyright &copy; Pascal Berger and <a href="https://github.com/cake-contrib/Cake.AzureDevOps/graphs/contributors" target="_blank">contributors</a>.
<br/>
Website generated by <a href="http://wyam.io" target="_blank">Wyam</a>
</p>
4 changes: 2 additions & 2 deletions docs/input/docs/index.cshtml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
Title: Documentation
---
<p>This user guide, like Cake.Tfs itself, is under very active development. Some parts of it aren't
<p>This user guide, like Cake.AzureDevOps itself, is under very active development. Some parts of it aren't
documented as completely as they need to be, but we gladly accept your contributions.</p>

<p>We need your help to improve the documentation for Cake.Tfs, so if there is something that you
<p>We need your help to improve the documentation for Cake.AzureDevOps, so if there is something that you
would like to add then you can edit the content directly on GitHub.</p>

@foreach(IDocument child in Model.DocumentList(Keys.Children).OrderBy(x => x.Get<int>(DocsKeys.Order, 1000)))
Expand Down
2 changes: 1 addition & 1 deletion docs/input/docs/usage/index.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Order: 10
Description: How to obtain, configure, and use Cake.Tfs.
Description: How to obtain, configure, and use Cake.AzureDevOps.
---
<p>@Html.Raw(Model.String(DocsKeys.Description))</p>

Expand Down
16 changes: 8 additions & 8 deletions docs/input/docs/usage/read-pullrequest.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
Order: 20
Title: Reading pull requests
Description: Example how to read pull request information using the Cake.Tfs addin.
Description: Example how to read pull request information using the Cake.AzureDevOps addin.
---
The [Cake.Tfs addin] provides an alias for reading pull request information.
The [Cake.AzureDevOps addin] provides an alias for reading pull request information.

The following example will read details of a pull request:

```csharp
#addin "Cake.Tfs"
#addin "Cake.AzureDevOps"

Task("Read-PullRequest").Does(() =>
{
var pullRequestSettings =
new TfsPullRequestSettings(
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
new AzureDevOpsPullRequestSettings(
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
TfsAuthenticationNtlm());
AzureDevOpsAuthenticationNtlm());

var pullRequest =
TfsPullRequest(
AzureDevOpsPullRequest(
pullRequestSettings);

Information(pullRequest.TargetRefName);
});
```

[Cake.Tfs addin]: https://www.nuget.org/packages/Cake.Tfs
[Cake.AzureDevOps addin]: https://www.nuget.org/packages/Cake.AzureDevOps
20 changes: 10 additions & 10 deletions docs/input/docs/usage/vote-pullrequest.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
---
Order: 30
Title: Voting for pull requests
Description: Example how to approve or vote for pull requests using the Cake.Tfs addin.
Description: Example how to approve or vote for pull requests using the Cake.AzureDevOps addin.
---
The [Cake.Tfs addin] provides an alias for approving or voting on pull requests.
The [Cake.AzureDevOps addin] provides an alias for approving or voting on pull requests.

The following example will approve a pull request on a Azure DevOps Server:
The following example will approve a pull request on an Azure DevOps Server:

```csharp
#addin "Cake.Tfs"
#addin "Cake.AzureDevOps"

Task("Vote-PullRequest").Does(() =>
{
var pullRequestSettings =
new TfsPullRequestSettings(
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
new AzureDevOpsPullRequestSettings(
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
TfsAuthenticationNtlm());
AzureDevOpsAuthenticationNtlm());

TfsVotePullRequest(
AzureDevOpsVotePullRequest(
pullRequestSettings,
TfsPullRequestVote.Approved);
AzureDevOpsPullRequestVote.Approved);
});
```

[Cake.Tfs addin]: https://www.nuget.org/packages/Cake.Tfs
[Cake.AzureDevOps addin]: https://www.nuget.org/packages/Cake.AzureDevOps
2 changes: 1 addition & 1 deletion docs/input/index.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Title: Cake.Tfs
Title: Cake.AzureDevOps
NoSidebar: true
NoContainer: false
NoGutter: true
Expand Down
6 changes: 3 additions & 3 deletions setup.cake
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ BuildParameters.SetParameters(
context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
title: "Cake.Tfs",
title: "Cake.AzureDevOps",
repositoryOwner: "cake-contrib",
repositoryName: "Cake.Tfs",
repositoryName: "Cake.AzureDevOps",
appVeyorAccountName: "cakecontrib",
shouldRunGitVersion: true,
shouldDeployGraphDocumentation: false,
Expand All @@ -18,7 +18,7 @@ BuildParameters.PrintParameters(Context);

ToolSettings.SetToolSettings(
context: Context,
dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.Tfs.Tests/**/*.cs" },
dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.AzureDevOps.Tests/**/*.cs" },
testCoverageFilter: "+[*]* -[xunit.*]* -[Cake.Core]* -[*.Tests]* -[Shouldly]*",
testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*",
testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Ruleset for Cake.Tfs test cases" Description="Rules valid for Cake.Tfs test cases" ToolsVersion="14.0">
<Include Path="Cake.Tfs.ruleset" Action="Default" />
<RuleSet Name="Ruleset for Cake.AzureDevOps test cases" Description="Rules valid for Cake.AzureDevOps test cases" ToolsVersion="14.0">
<Include Path="Cake.AzureDevOps.ruleset" Action="Default" />
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA0001" Action="None" />
<Rule Id="SA1118" Action="None" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cake.Tfs.Tests
namespace Cake.AzureDevOps.Tests
{
using Xunit;

Expand Down
Loading

0 comments on commit d8961a3

Please sign in to comment.