-
Notifications
You must be signed in to change notification settings - Fork 126
AppVeyor Build for dotnet to get pre-release NuGet feed #199
Changes from all commits
bee00bb
c517886
ac9d047
a0010c7
becbeb0
9bdf636
5fea9c1
6c4a568
3f2a041
5821281
9c80235
99bde62
cf3ab95
93e4538
0c58574
ab2dcc4
8622740
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
|
||
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' |
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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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). There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. 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 |
There was a problem hiding this comment.
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 regularlygit subtree push
individual modules to independent repositories).WDYT?
There was a problem hiding this comment.
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.