-
Notifications
You must be signed in to change notification settings - Fork 14
/
.appveyor.yml
45 lines (43 loc) · 1.47 KB
/
.appveyor.yml
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
version: 2.0.{build}
skip_tags: true
image: Ubuntu2004
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: $(APPVEYOR_REPO_BRANCH):$(APPVEYOR_REPO_COMMIT)
#install:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/install-nuget-3-3-0.ps1'))
before_build:
- sh: |
echo Restoring nuget packages..
nuget restore
echo Setting version attributes..
sed -i'' -e "s|0\.0\.0\.0|$APPVEYOR_BUILD_VERSION|g" */*.nuspec
sed -i'' -e "s|GIT_COMMIT|$APPVEYOR_REPO_COMMIT|g" */*.nuspec
build:
publish_nuget: true
publish_nuget_symbols: true
use_snupkg_format: true
verbosity: minimal
build_script:
- sh: msbuild Topshelf.Linux.sln /l:"/opt/appveyor/build-agent/msbuild-logger/Appveyor.MSBuildLogger.dll" /p:Configuration=$CONFIGURATION
- sh: nuget pack Topshelf.Linux/Topshelf.Linux.csproj -Properties "Configuration=$CONFIGURATION" -Symbols -SymbolPackageFormat snupkg -OutputDirectory . -Verbosity detailed
artifacts:
- path: '*.nupkg'
- path: '*.snupkg'
deploy:
- provider: NuGet
api_key:
secure: PUSzX6XRtbvk0LirQ4F84rDeSMev155duGUP2HgZ9hE1YRPK7X5H3zrVTWwf0/eo
on:
branch: master
notifications:
- provider: Email
to:
- '{{commitAuthorEmail}}'
on_build_success: true
on_build_failure: true
on_build_status_changed: true