From 051cd88d7a39e455b4ccdbff9adba58c9b0b3c05 Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Tue, 25 Aug 2015 16:29:56 +0800 Subject: [PATCH] Setting up AppVeyor --- appveyor.yml | 28 +++++++++++++++++++ src/TestStack.BDDfy.Samples.nuspec | 19 ------------- src/TestStack.BDDfy.sln | 7 +---- src/TestStack.BDDfy/TestStack.BDDfy.csproj | 1 + .../TestStack.BDDfy.nuspec | 4 +++ src/go.cmd | 2 -- 6 files changed, 34 insertions(+), 27 deletions(-) create mode 100644 appveyor.yml delete mode 100644 src/TestStack.BDDfy.Samples.nuspec rename src/{ => TestStack.BDDfy}/TestStack.BDDfy.nuspec (83%) delete mode 100644 src/go.cmd diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..031af62 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,28 @@ +install: + - choco install gitversion.portable -pre -y + +platform: + - Any CPU + +configuration: + - Release + +assembly_info: + patch: false + +before_build: + - nuget restore src\ + - ps: gitversion /l console /output buildserver /updateAssemblyInfo + +build: + project: src\TestStack.BDDfy.sln + +after_build: + - cmd: nuget pack src\TestStack.BDDfy\TestStack.BDDfy.nuspec -BasePath src\TestStack.BDDfy\ -version "%GitVersion_NuGetVersion%" -prop "configuration=%CONFIGURATION%" + - cmd: appveyor PushArtifact "TestStack.BDDfy.%GitVersion_NuGetVersion%.nupkg" + + - cmd: 7z a "TestStack.BDDfy_%GitVersion_NuGetVersion%.zip" -r src\TestStack.BDDfy\bin\%CONFIGURATION%\*.* + - cmd: appveyor PushArtifact "TestStack.BDDfy_%GitVersion_NuGetVersion%.zip" + +cache: + - src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified diff --git a/src/TestStack.BDDfy.Samples.nuspec b/src/TestStack.BDDfy.Samples.nuspec deleted file mode 100644 index c73ea22..0000000 --- a/src/TestStack.BDDfy.Samples.nuspec +++ /dev/null @@ -1,19 +0,0 @@ - - - - TestStack.BDDfy.Samples - $version$ - TestStack.BDDfy.Samples - Mehdi Khalili, Michael Whelan - Mehdi Khalili, Michael Whelan - false - Contains two small samples that showcase BDDfy's API and usage - https://github.com/TestStack/TestStack.BDDfy - https://github.com/TestStack/TestStack.BDDfy/blob/master/license.txt - https://raw.github.com/TestStack/TestStack.BDDfy/master/logo.png - - - - - - diff --git a/src/TestStack.BDDfy.sln b/src/TestStack.BDDfy.sln index 4b7edc2..d5366f4 100644 --- a/src/TestStack.BDDfy.sln +++ b/src/TestStack.BDDfy.sln @@ -7,14 +7,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .gitattributes = .gitattributes .gitignore = .gitignore - go.cmd = go.cmd - Packages.build = Packages.build + ..\appveyor.yml = ..\appveyor.yml readme.md = readme.md release-notes.md = release-notes.md - TestStack.BDDfy.build = TestStack.BDDfy.build - TestStack.BDDfy.nuspec = TestStack.BDDfy.nuspec - TestStack.BDDfy.Samples.nuspec = TestStack.BDDfy.Samples.nuspec - WE-settings.xml = WE-settings.xml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestStack.BDDfy", "TestStack.BDDfy\TestStack.BDDfy.csproj", "{DA6BCB39-307C-4A8E-9A3A-27BB2DBC44A3}" diff --git a/src/TestStack.BDDfy/TestStack.BDDfy.csproj b/src/TestStack.BDDfy/TestStack.BDDfy.csproj index b7e0d1f..3ae7028 100644 --- a/src/TestStack.BDDfy/TestStack.BDDfy.csproj +++ b/src/TestStack.BDDfy/TestStack.BDDfy.csproj @@ -187,6 +187,7 @@ TextTemplatingFileGenerator FluentApi.cs + diff --git a/src/TestStack.BDDfy.nuspec b/src/TestStack.BDDfy/TestStack.BDDfy.nuspec similarity index 83% rename from src/TestStack.BDDfy.nuspec rename to src/TestStack.BDDfy/TestStack.BDDfy.nuspec index 0465953..c66328d 100644 --- a/src/TestStack.BDDfy.nuspec +++ b/src/TestStack.BDDfy/TestStack.BDDfy.nuspec @@ -13,4 +13,8 @@ https://raw.github.com/TestStack/TestStack.BDDfy/master/logo.png BDD testing + + + + diff --git a/src/go.cmd b/src/go.cmd deleted file mode 100644 index 84976fd..0000000 --- a/src/go.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@echo on -%~dp0Resource\Build\GitVersion.exe /proj %~dp0Packages.build /updateassemblyinfo /output buildserver /l console \ No newline at end of file