|
1 | | -version: 2.1.0 |
2 | | -for: |
3 | | -- |
4 | | - branches: |
5 | | - only: |
6 | | - - master |
7 | | - - next |
8 | | - version: 2.1.0.{build} |
9 | | - after_test: |
10 | | - - cmd: iscc /q "Installer Build Script.iss" |
11 | | - - cmd: move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe |
| 1 | +version: '2.1.1.{build}' |
| 2 | + |
| 3 | +# add nuget api to hosts file, making sure we can actually nuget restore for the build |
| 4 | +hosts: |
| 5 | + api.nuget.org: 93.184.221.200 |
| 6 | + |
| 7 | +# enforce crlf fixing |
| 8 | +init: |
| 9 | + git config --global core.autocrlf true |
| 10 | +# restrict how much history we try to grab |
| 11 | +clone_depth: 3 |
| 12 | +# ignore a certain subset of files when evaluating build-changes |
12 | 13 | skip_commits: |
13 | 14 | files: |
14 | 15 | - docs/* |
15 | 16 | - '**/*.md' |
16 | | - - '**/*.yml' |
| 17 | + #- '**/*.yml' |
17 | 18 | - license |
18 | 19 | - License.rtf |
19 | 20 | branches: |
20 | 21 | only: |
21 | 22 | - master |
22 | 23 | - next |
23 | 24 | skip_tags: true |
| 25 | + |
| 26 | +# build-matrix: all Release CPUs on VS2017 |
24 | 27 | image: Visual Studio 2017 |
25 | 28 | configuration: Release |
26 | 29 | platform: Any CPU |
| 30 | + |
| 31 | +# cache the nuget packages unless something changed there |
| 32 | +cache: |
| 33 | + - packages/ -> **/packages.config |
| 34 | + |
| 35 | + |
27 | 36 | install: |
28 | | -- cmd: set PATH=C:\Program Files (x86)\MSBuild\15.0\Bin;%PATH% |
29 | | -init: |
30 | | - - git config --global core.autocrlf true |
31 | | -before_build: |
32 | | -- ps: choco install innosetup |
33 | | -build: |
34 | | - verbosity: normal |
| 37 | + set PATH=C:\Program Files (x86)\MSBuild\15.0\Bin;%PATH% |
35 | 38 | assembly_info: |
36 | 39 | patch: true |
37 | 40 | file: RetailCoder.VBE\Properties\AssemblyInfo.cs |
38 | 41 | assembly_version: '{version}' |
39 | | -hosts: |
40 | | - api.nuget.org: 93.184.221.200 |
| 42 | + |
| 43 | +before_build: |
| 44 | + cinst innosetup |
| 45 | +build: |
| 46 | + verbosity: minimal |
| 47 | + |
41 | 48 | before_package: |
42 | | -- cmd: copy Rubberduck.Inspections\bin\Release\Rubberduck.Inspections.dll RetailCoder.VBE\bin\Release\Rubberduck.Inspections.dll |
43 | | -after_test: |
44 | | -- iscc /q "Installer Build Script.iss" |
45 | | -- cmd: move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%.exe |
| 49 | +- copy Rubberduck.Inspections\bin\Release\Rubberduck.Inspections.dll RetailCoder.VBE\bin\Release\Rubberduck.Inspections.dll |
| 50 | + |
| 51 | +for: |
| 52 | + - branches: |
| 53 | + only: |
| 54 | + - next |
| 55 | + after_test: |
| 56 | + - iscc /q "Installer Build Script.iss" |
| 57 | + - move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%-pre.exe |
| 58 | + - branches: |
| 59 | + only: |
| 60 | + - master |
| 61 | + after_test: |
| 62 | + - iscc /q "Installer Build Script.iss" |
| 63 | + - move Installers\Rubberduck.Setup.exe Installers\Rubberduck.Setup.%APPVEYOR_BUILD_VERSION%.exe |
| 64 | + |
| 65 | +# grab the installers we produce and upload them to github :) |
46 | 66 | artifacts: |
47 | | -- path: Installers\Rubberduck.Setup.*.exe |
48 | | - name: Rubberduck |
| 67 | + - path: Installers\Rubberduck.Setup.*.exe |
| 68 | + name: Rubberduck |
49 | 69 | deploy: |
50 | | -- provider: GitHub |
51 | | - tag: Rubberduck v$(appveyor_build_version) |
52 | | - release: Rubberduck v$(appveyor_build_version) |
53 | | - description: AppVeyor build on [master] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version) |
54 | | - auth_token: |
55 | | - secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz |
56 | | - artifact: Installers\Rubberduck.Setup.$(appveyor_build_version).exe |
57 | | - draft: true |
58 | | - prerelease: false |
59 | | - on: |
60 | | - branch: master |
61 | | -- provider: GitHub |
62 | | - tag: Rubberduck v$(appveyor_build_version) |
63 | | - release: Rubberduck v$(appveyor_build_version)-pre |
64 | | - description: AppVeyor build on [next] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version) |
65 | | - auth_token: |
66 | | - secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz |
67 | | - artifact: Installers\Rubberduck.Setup.$(appveyor_build_version)-pre.exe |
68 | | - draft: false |
69 | | - prerelease: true |
70 | | - on: |
71 | | - branch: next |
| 70 | + - provider: GitHub |
| 71 | + tag: Rubberduck v$(appveyor_build_version) |
| 72 | + release: Rubberduck v$(appveyor_build_version) |
| 73 | + description: AppVeyor build on [master] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version) |
| 74 | + auth_token: |
| 75 | + secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz |
| 76 | + artifact: Installers\Rubberduck.Setup.$(appveyor_build_version).exe |
| 77 | + draft: true |
| 78 | + prerelease: false |
| 79 | + on: |
| 80 | + branch: master |
| 81 | + - provider: GitHub |
| 82 | + tag: Rubberduck v$(appveyor_build_version) |
| 83 | + release: Rubberduck v$(appveyor_build_version)-pre |
| 84 | + description: AppVeyor build on [next] - https://ci.appveyor.com/project/retailcoder/rubberduck/build/$(appveyor_build_version) |
| 85 | + auth_token: |
| 86 | + secure: oh0SRnZVt0ABeWqFr7ut5TZkxFJjHmS/DZnJnp2HErQTCmX3O8RASJH3ZiYl11gz |
| 87 | + artifact: Installers\Rubberduck.Setup.$(appveyor_build_version)-pre.exe |
| 88 | + draft: false |
| 89 | + prerelease: true |
| 90 | + on: |
| 91 | + branch: next |
72 | 92 | notifications: |
73 | | -- provider: Webhook |
74 | | - url: http://stats.zomis.net/GithubHookSEChatService/hooks/github/payload?roomId=14929 |
75 | | - on_build_success: true |
76 | | - on_build_failure: true |
77 | | - on_build_status_changed: false |
| 93 | + - provider: Webhook |
| 94 | + url: http://stats.zomis.net/GithubHookSEChatService/hooks/github/payload?roomId=14929 |
| 95 | + on_build_success: true |
| 96 | + on_build_failure: true |
| 97 | + on_build_status_changed: false |
0 commit comments