forked from FoundatioFx/Foundatio
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
47 lines (37 loc) · 1.32 KB
/
appveyor.yml
File metadata and controls
47 lines (37 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: 4.0.{build}
os: Visual Studio 2015
clone_depth: 2
install:
- ps: $env:GIT_HASH = $env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
- choco install gitlink
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "4.0.0.0"
assembly_file_version: "{version}.0"
assembly_informational_version: "{version} $(GIT_HASH)"
before_build:
- nuget restore
- ps: .\Build\Replace-FileString -Pattern '\$version\$' -Replacement "$env:appveyor_build_version" -Path src\**\*.nuspec -Overwrite
configuration: Release
build:
project: Foundatio.sln
verbosity: minimal
publish_nuget: true
before_package:
- ps: if ((-not $env:APPVEYOR_PULL_REQUEST_NUMBER) -and ($env:APPVEYOR_REPO_BRANCH -eq 'master')) { & "GitLink" .\ }
before_test:
- nuget install redis-64 -excludeversion
- redis-64\tools\redis-server.exe --service-install
- redis-64\tools\redis-server.exe --service-start
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
deploy:
- provider: Environment
name: NuGet
on:
branch: master
notifications:
- provider: Slack
channel: '#notifications'
auth_token:
secure: PigIGGo7UUDwdb0KGM/s7OfpAng/OMJx7q33jKfzudFBiXi1EBEd0DRmkbCc7CiX