pulumi/.appveyor.yml
Matt Ellis 034fc05e88 Build version tags in AppVeyor
From the AppVeyor docs (https://www.appveyor.com/docs/branches/):

> Despite the option name, `only` and `except` is applied to tag names
> too, so the above example using only would cause tags not trigger
> the build. For example to enable builds for a tag version scheme
> like v1.0.0 you would need...

We had previously been getting lucky here since our workflow for
releasing was more or less always push master and the tag at the same
time, so the fact that the tag did not also kick off a build was not a
problem.

When releasing 0.17.22, we just pushed a tag for an older commit and
we had to do some gymnastics to get AppVeyor to build it.

Now we won't anymore.
2019-07-12 16:58:43 -07:00

43 lines
1.3 KiB
YAML

version: 1.0.{build}
image: Visual Studio 2017
configuration: Release
platform: x64
clone_folder: '%USERPROFILE%\go\src\github.com\pulumi\pulumi'
branches:
only:
- master
- /release\/.*/
- /v\d*\.\d*\.\d*/
init:
- ps: Install-Product node 8.10 x64
environment:
PULUMI_API: https://api.pulumi-staging.io
PULUMI_ACCESS_TOKEN:
secure: +c7s1GgUunQl8QlLZs7zafFv6lJbZp40fx1kJl7v+n0qa8oq3ssBlVEl9gfoMBgH
AWS_ACCESS_KEY_ID:
secure: eB7Gfl1GHhz60tH2EEASI7IFsWHDd5SV+kponXwaCSo=
AWS_SECRET_ACCESS_KEY:
secure: T19RJk7Uv3trAChRRDB82OAUDI8k2q9PaSetU7yDFu4aC+MshdwAhTTN/TaPkwl/
install:
- rmdir C:\go /s /q
- appveyor DownloadFile https://dl.google.com/go/go1.12.1.windows-amd64.zip
- 7z x go1.12.1.windows-amd64.zip -y -oC:\ > NUL
- cmd: >-
set GOPATH=%USERPROFILE%\go
set PATH=C:\go\bin;%PATH%;%GOPATH%\bin
set PulumiRoot=C:\Pulumi
set PATH=%PulumiRoot%\bin;%PATH%
go version
git clone https://github.com/pulumi/scripts.git "%USERPROFILE%\go\src\github.com\pulumi\scripts"
- ps: >-
New-Item -Type Directory "$env:USERPROFILE\go\bin"
build_script:
- cmd: >-
if defined APPVEYOR_PULL_REQUEST_NUMBER ( msbuild /t:AppVeyorPullRequest /v:Detailed build.proj ) else ( msbuild /t:AppVeyorPush /v:Detailed build.proj )
test: off