Skip to content

Commit

Permalink
Updated appveyor script to do source-indexing and nuget pack
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-danilov committed Dec 31, 2015
1 parent d85a48f commit d09c58a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 68 deletions.
7 changes: 0 additions & 7 deletions Build.cmd

This file was deleted.

4 changes: 4 additions & 0 deletions GitVersionConfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assembly-versioning-scheme: MajorMinor
mode: ContinuousDelivery
next-version: 0.13.0
branches: {}
1 change: 0 additions & 1 deletion NextVersion.txt

This file was deleted.

50 changes: 0 additions & 50 deletions TestStack.White.proj

This file was deleted.

36 changes: 26 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
version: 1.0.{build}
init:
- ps:
install:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1'))
before_build:
- cmd: nuget restore src\TestStack.White.sln
build:
project: src\TestStack.White.sln
verbosity: minimal
- choco install gitversion.portable -pre -y
- choco install gitlink -y
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1'))

assembly_info:
patch: false

platform:
- Any CPU

configuration:
- Release

build_script:
- cmd: nuget restore src\TestStack.White.sln
- cmd: gitversion /l console /output buildserver /updateAssemblyInfo

- cmd: msbuild src\TestStack.White.sln "/p:Configuration=%CONFIGURATION%;Platform=%PLATFORM%"

- cmd: ECHO GitLink src\ -u https://github.com/TestStack/White -c %CONFIGURATION%
- cmd: GitLink . -u https://github.com/TestStack/White -c %CONFIGURATION%

- cmd: ECHO nuget pack src\TestStack.White\bin\%CONFIGURATION%\TestStack.White.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
- cmd: nuget pack src\TestStack.White\bin\%CONFIGURATION%\TestStack.White.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"

on_finish:
- ps: if (Test-Path -path c:\FailedTestsScreenshots) { Get-ChildItem c:\FailedTestsScreenshots\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }}
- ps: if (Test-Path -path c:\FailedTestsScreenshots) { Get-ChildItem c:\FailedTestsScreenshots\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }}
1 change: 1 addition & 0 deletions src/TestStack.White/TestStack.White.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@
<None Include="packages.config" />
<None Include="TestStack.White.nuspec">
<SubType>Designer</SubType>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="TestStack.White.psm1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down

0 comments on commit d09c58a

Please sign in to comment.