Skip to content

Commit 545e815

Browse files
committed
Merge branch 'master' of https://github.com/TestStack/TestStack.Dossier into netstandard20
2 parents dafeb60 + 704d76f commit 545e815

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

TestStack.Dossier.sln

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ VisualStudioVersion = 15.0.26430.13
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BC8508D1-6FCB-46B2-9C14-F41F6AD76B09}"
77
ProjectSection(SolutionItems) = preProject
8+
appveyor.yml = appveyor.yml
89
BREAKING_CHANGES.md = BREAKING_CHANGES.md
910
CONTRIBUTING.md = CONTRIBUTING.md
1011
GitVersionConfig.yaml = GitVersionConfig.yaml
@@ -35,4 +36,7 @@ Global
3536
GlobalSection(SolutionProperties) = preSolution
3637
HideSolutionNode = FALSE
3738
EndGlobalSection
39+
GlobalSection(ExtensibilityGlobals) = postSolution
40+
SolutionGuid = {B1C35ECA-9807-42D4-935A-186845AF20A3}
41+
EndGlobalSection
3842
EndGlobal

appveyor.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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

0 commit comments

Comments
 (0)