-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
74 lines (64 loc) · 2.79 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
68
69
70
71
72
73
74
version: 2.1.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
skip_tags: true
image: Visual Studio 2019
configuration: Debug
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
SENTRY_AUTH_TOKEN:
secure: 9tqnekcnixF1PGmABNun/FmzDkULxQH6wB3g8DmvteGl0kNYOdI6DZzys//PbEp0w+8ObjmV3gXIoHZC86cVmRTL08F1dHEj5x7W25jAbtc=
TEST_FILES_PATH:
secure: nNs2jDncG35MAS2GlaoO1uqSOopN/y1tidWdrfPN7xMJ2X+gvKvM3GCypxInwg8+CQ5EKuu8XFWZp3yi8AgUkQPIaOhP/pal3v+gd5qeqL4=
before_build:
- cmd: >-
git submodule update --init
nuget restore
build:
project: XRayBuilderGUI.sln
verbosity: normal
after_build:
- cmd: >-
7z a xray-builder-gui-v%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\*.exe "%APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\X-Ray Builder GUI.exe.config" %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\lib %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\*.pdb %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\x86 %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\x64 %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\dist %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\doc %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\de %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\de-DE %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\fr %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\Debug\nb-NO
dotnet build %APPVEYOR_BUILD_FOLDER%\XRayBuilder.Console\XRayBuilder.Console.csproj --runtime linux-x64 --output %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\linux-x64\
7z a xray-builder-console-v%APPVEYOR_BUILD_VERSION%_linux-x64.zip %APPVEYOR_BUILD_FOLDER%\XRayBuilder\bin\linux-x64\*
before_test:
- cmd: >-
appveyor DownloadFile %TEST_FILES_PATH%
7z e xray-testfiles.zip -oc:\projects\xray-builder-gui\XRayBuilder.Test\bin\Debug\testfiles\
after_test:
- cmd: del /Q xray-testfiles.zip
artifacts:
- path: '*.zip'
name: X-Ray Builder GUI
deploy:
- provider: GitHub
auth_token:
secure: LgWDoEaRVDmFphZ9ye1jk2jbMP+o4xHbdFfJY7PtimB+wwkXjcH5LOdUpszhFPIX
artifact: /.*\.zip/
draft: false
after_deploy:
- sh: >-
npm install @sentry/cli
./node_modules/.bin/sentry-cli
export SENTRY_ORG=revensoftware
# Create a release
./node_modules/.bin/sentry-cli releases new --finalize -p xray-builder APPVEYOR_BUILD_VERSION
# Associate commits with the release
./node_modules/.bin/sentry-cli releases set-commits --auto APPVEYOR_BUILD_VERSION
notifications:
- provider: Slack
incoming_webhook:
secure: Z4JrOxDraMiMjqGyjuIScGiRuOD4vB4Tj6pxBLXV+xQJxAT1muKaFzqfIBhyvmF+o7qT6YjzusmaARJYSd/fjADC63ir2KrbgC49+52yhAg/7MYvpgbeDWiIul0LaSY9
on_build_success: true
on_build_failure: true
on_build_status_changed: true