forked from tgstation/tgstation-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
67 lines (67 loc) · 2.98 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
pull_requests:
do_not_increment_build_number: true
environment:
repo_token:
secure: lJNGAXwiB5HlWdthz3K4PetqpTG5IEAyRgKaiKxFMQ8HW8CcOjRtB97B05op7BsK
snk_passphrase:
secure: dsRGlNewYn/JoycPaMoxLCrb3wkL31RsdU7Xwbo7TIAmClwShCVWeRPN+eGA+fMZX12MDNRBs8Fws4IxqLKQ36thQo6p2B+kPksAUJiAOR5QKJoT6nt8JB1wBMFS2kH4
skip_branch_with_pr: true
image: Visual Studio 2017
configuration: Release
shallow_clone: true
artifacts:
- path: TGS3-Server-v*.exe
name: TGS3Server
- path: MD5-SHA1-Server-v*.txt
name: MD5SHA1Server
- path: TGS3-ServerConsole-v*.zip
name: TGS3ServerConsole
- path: MD5-SHA1-ServerConsole-v*.txt
name: MD5SHA1ServerConsole
- path: TGS3-Client-v*.zip
name: TGS3Client
- path: MD5-SHA1-Client-v*.txt
name: MD5SHA1Client
cache:
- packages -> **\packages.config
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
install:
- choco install fciv doxygen.portable codecov
before_build:
- nuget restore TGStationServer3.sln
build:
project: TGStationServer3.sln
parallel: false
verbosity: minimal
publish_nuget: true
after_build:
- ps: Tools/PostCIBuild.ps1
- ps: if($env:APPVEYOR_REPO_COMMIT_MESSAGE -match "\[TGSDeploy\]"){ if($env:APPVEYOR_REPO_BRANCH -match "V3"){ $env:TGSDeploy = "Do it." }}
- ps: if($env:APPVEYOR_REPO_COMMIT_MESSAGE -match "\[NugetDeploy\]"){ if($env:APPVEYOR_REPO_BRANCH -match "V3"){ $env:NugetDeploy = "Do it." }}
- ps: $env:TGSVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:APPVEYOR_BUILD_FOLDER/TGS.Server/bin/Release/TGS.Server.dll").FileVersion
test_script:
- set path=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow;%path%
- copy "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions\appveyor.*" "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions" /y
- vstest.console /logger:trx;LogFileName=results.trx "TGS.Tests\bin\Release\TGS.Tests.dll" /Enablecodecoverage /Settings:"Tools/CoverageExclusions.runsettings" /inIsolation /Platform:x64
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResults\results.trx))
after_test:
- ps: Tools/UploadCoverage.ps1
deploy:
- provider: GitHub
release: "tgstation-server-v$(TGSVersion)"
description: 'The /tg/station server suite'
auth_token:
secure: lJNGAXwiB5HlWdthz3K4PetqpTG5IEAyRgKaiKxFMQ8HW8CcOjRtB97B05op7BsK
artifact: TGS3Server,MD5SHA1Server,TGS3Client,MD5SHA1Client,TGS3ServerConsole,MD5SHA1ServerConsole
draft: true
on:
TGSDeploy: "Do it."
- provider: NuGet
api_key:
secure: QUuuTviU4NOcQzHqCoRTh2DwEUmhBIVKMtBIYRbVD5kG+zEZOlWZW4kolURbUgWq
skip_symbols: true
artifact: /.*\.nupkg/
on:
NugetDeploy: "Do it."