File tree 2 files changed +76
-0
lines changed
2 files changed +76
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ VisualStudioVersion = 15.0.26430.13
5
5
MinimumVisualStudioVersion = 10.0.40219.1
6
6
Project ("{2150E333-8FDC-42A3-9474-1A3956D46DE8}" ) = "Solution Items" , "Solution Items" , "{BC8508D1-6FCB-46B2-9C14-F41F6AD76B09}"
7
7
Project Section (SolutionItems ) = preProject
8
+ appveyor .yml = appveyor .yml
8
9
BREAKING _CHANGES .md = BREAKING _CHANGES .md
9
10
CONTRIBUTING .md = CONTRIBUTING .md
10
11
GitVersionConfig .yaml = GitVersionConfig .yaml
35
36
GlobalSection (SolutionProperties ) = preSolution
36
37
HideSolutionNode = FALSE
37
38
EndGlobalSection
39
+ GlobalSection (ExtensibilityGlobals ) = postSolution
40
+ SolutionGuid = {B1C35ECA-9807-42D4-935A-186845AF20A3}
41
+ EndGlobalSection
38
42
EndGlobal
Original file line number Diff line number Diff line change
1
+ version : 1.0.{build}
2
+ configuration : Release
3
+ image :
4
+ - Visual Studio 2017
5
+ environment :
6
+ GitHubOrganisation : TestStack
7
+ GitHubToken :
8
+ secure : cBxvAtTgSlWVblTXtx8QKygh2HQeYZ9i0plMjJzCTNInGCm1XyG+nrSs18qUtC8W
9
+ before_build :
10
+ - ps : >-
11
+ nuget restore
12
+
13
+ choco install -y --no-progress git.install GitReleaseManager.Portable
14
+
15
+ npm install github-release-notes -g
16
+
17
+ GitVersion /output buildserver /updateassemblyinfo
18
+
19
+ If (Test-Path ".\PreBuild.ps1") {
20
+
21
+ & ".\PreBuild.ps1"
22
+
23
+ }
24
+
25
+ build :
26
+ parallel : true
27
+ verbosity : minimal
28
+ after_build :
29
+ - ps : >-
30
+ Get-ChildItem -Recurse *.nuspec | foreach { nuget pack $_.FullName -Properties "Configuration=Release;Platform=AnyCPU" -Symbols -Version $Env:GitVersion_NuGetVersion }
31
+
32
+ $currentTag = git tag -l --points-at HEAD
33
+
34
+ $HTTP_Request = [System.Net.WebRequest]::Create("https://api.github.com/repos/$env:GitHubOrganisation/$env:APPVEYOR_PROJECT_NAME/releases/tags/$Env:GitVersion_NuGetVersion")
35
+
36
+ $HTTP_Request.UserAgent = "Powershell"
37
+
38
+ try {
39
+
40
+ $HTTP_Request.GetResponse()
41
+
42
+ } catch [Net.WebException] {
43
+
44
+ [System.Net.HttpWebResponse] $resp = [System.Net.HttpWebResponse] $_.Exception.Response
45
+
46
+ if ($currentTag -And $resp.StatusCode -eq 404) {
47
+
48
+ $env:SHOULD_DEPLOY = 'true'
49
+
50
+ }
51
+
52
+ }
53
+ test :
54
+ assemblies :
55
+ only :
56
+ - ' **\*.*Tests.dll'
57
+ artifacts :
58
+ - path : ' *.nupkg'
59
+ deploy :
60
+ - provider : NuGet
61
+ api_key :
62
+ secure : VwHQFq0vD5vJNiUtsZMgUYdw2tVfXJfWh++eHC2LyEMvQzWiESWy2yBwQajzYAjo
63
+ on :
64
+ SHOULD_DEPLOY : true
65
+ after_deploy :
66
+ - ps : >-
67
+ gren release --token=$env:GitHubToken --username=$env:GitHubOrganisation --repo=$env:APPVEYOR_PROJECT_NAME
68
+ notifications :
69
+ - provider : GitHubPullRequest
70
+ on_build_success : true
71
+ on_build_failure : true
72
+ on_build_status_changed : false
You can’t perform that action at this time.
0 commit comments