Skip to content

Commit

Permalink
Automatic release to NuGet and GitHub - vsix is still manual.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanz committed Sep 24, 2016
1 parent 5b27e77 commit 326a3b5
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,49 @@
environment:
nuget_version: '2.0.0'
vsix_version: '2.0.0'
assembly_version: '2.0.0'
nuget_version: '2.1.0'
nuget_prerelease: false
vsix_version: '2.1.0'
assembly_version: '2.1.0'

version: '$(nuget_version)+{build}'

deploy:
- provider: GitHub
description: |
* Support for nested "and" style tests (thanks to molszews)
* Fix error when trying to run tests for an assembly that doesn't reference mspec (thanks to alnixon)
* The mspec dependency version has been relaxed - was < 0.10 and now is < 1.0.0, which means that you can now use MSpec 0.11
![](https://cloud.githubusercontent.com/assets/2878612/18577095/5dfbc216-7be7-11e6-93aa-d00fdccca1c6.PNG)
on:
appveyor_repo_tag: true
prerelease: $(nuget_prerelease)

release: v$(nuget_version)
auth_token:
secure: VrF5TrpBRN0ims9nJC1LG32O6ga5hsRuGNSufEbatAiIWZ1z68iiCYKZtqnAaT9y

- provider: NuGet
api_key:
secure: R+qirYPrTX9IzJHpRLL6KAV1Lo+vlAnInf6ShiIB2rAGIP28ceJxRAh1jirHE/uD
on:
appveyor_repo_tag: true

clone_depth: 5

pull_requests:
do_not_increment_build_number: true

configuration: Release
platform: Any CPU

assembly_info:
patch: true
file: Source\**\AssemblyInfo.*
assembly_version: '$(assembly_version).{build}'
assembly_file_version: '$(assembly_version).{build}'
assembly_informational_version: '$(nuget_version)'

before_build:
- cmd: >-
powershell -f patch-vsix-version.ps1 -version "%VSIX_VERSION%.%APPVEYOR_BUILD_NUMBER%" -manifestFile "Source\Machine.VSTestAdapter.VSIX\source.extension.vsixmanifest"
Expand All @@ -21,8 +53,11 @@ build:
project: machine.vstestadapter.sln
publish_nuget: true
verbosity: minimal

test:
assemblies: '**\*.Specs.dll'

artifacts:
- path: '**\*.vsix'
- path: Source\**\*.nupkg
- path: Source\**\*.nupkg

0 comments on commit 326a3b5

Please sign in to comment.