-
Notifications
You must be signed in to change notification settings - Fork 83
/
appveyor.yml
32 lines (25 loc) · 1.28 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
configuration: Release
init:
- cmd: set
install:
- cmd: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- cmd: nuget install GitVersion.CommandLine -SolutionDir %APPVEYOR_BUILD_FOLDER% -Verbosity quiet -ExcludeVersion -pre
- cmd: nuget install gitlink -SolutionDir %APPVEYOR_BUILD_FOLDER% -Verbosity quiet -ExcludeVersion -pre
before_build:
- cmd: nuget restore
- cmd: '.\packages\GitVersion.CommandLine\tools\GitVersion.exe /l console /output buildserver /updateAssemblyInfo'
build_script:
- cmd: 'msbuild MetroLog.sln /m /p:platform="Mixed Platforms" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"'
after_build:
- cmd: '.\packages\gitlink\lib\net45\GitLink.exe . -f MetroLog.sln -u https://github.com/onovotny/metrolog -s %APPVEYOR_REPO_COMMIT% -errorsaswarnings'
- cmd: nuget pack MetroLog.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%" -NoPackageAnalysis
- cmd: appveyor PushArtifact "MetroLog.%GitVersion_NuGetVersion%.nupkg"
test:
assemblies:
- '**\metrolog.tests.dll'
deploy:
provider: NuGet
server: https://www.myget.org/F/metrolog/api/v2/package
api_key:
secure: bmqlJK8a5HYiUXOT99HXT1j7JiM5+fpR4kHhxIC30oaaEXbv94f0fKdiKlU1QC/l
artifact: /.*\.nupkg/