Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

AppVeyor Build for dotnet to get pre-release NuGet feed #199

Merged
merged 17 commits into from
Jul 26, 2016
31 changes: 31 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: build{build}


environment:
GherkinVersion: "4.0.1"
GherkinPackageVersion: "$(GherkinVersion)-ci$(APPVEYOR_BUILD_NUMBER)"


nuget:
project_feed: true
disable_publish_on_pr: true

configuration: Release


before_build:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- appveyor DownloadFile https://raw.githubusercontent.com/appveyor/ci/master/scripts/nuget-restore.cmd
- nuget-restore dotnet\Gherkin.CSharp.sln
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make more sense to move this entire file to the dotnet directory, and have Appveyor build the gherkin-dotnet project instead. (We regularly git subtree push individual modules to independent repositories).

WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The appveyor.yml file has to be in the root folder. So moving into the dotnet directory, you have to create the build for the gherkin-dotnet project.
It really depends how often you are pushing the changes to the other repos. If you are doing it only short before a release, it is then not a great help to update SpecFlow always to the latest version.


build:
publish_nuget: true

after_build:
- set paddedVersion=000%APPVEYOR_BUILD_NUMBER%
- set paddedVersion=%paddedVersion:~-3%
- set GherkinPaddedPackageVersion=%GherkinVersion%-ci%paddedVersion%
- nuget pack dotnet/Gherkin.NuGetPackages/Gherkin.nuspec -Version %GherkinPaddedPackageVersion%

artifacts:
- path: 'Gherkin.*.nupkg'
3 changes: 3 additions & 0 deletions dotnet/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build Status](https://secure.travis-ci.org/cucumber/gherkin-dotnet.svg)](http://travis-ci.org/cucumber/gherkin-dotnet)
[![Build status](https://ci.appveyor.com/api/projects/status/ka74of1ptpdfr6uv?svg=true)](https://ci.appveyor.com/project/SabotageAndi/gherkin)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to make the AppVeyor build owned by myself. Is that OK with you?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a cucumberbdd AppVeyor account created for and used by aruba (unless you didn't know).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never wanted that the stuff run in my AppVeyor account if this change is added.
As noted in the PR- text, this Urls have to be changed to the real ones.

So when there is already an AppVeyor account, you only have to add the project.


Gherkin parser/compiler for .NET. Please see [Gherkin](https://github.com/cucumber/gherkin) for details.

NuGet Repository: https://ci.appveyor.com/nuget/gherkin-pgwyovw4bucb