2020-03-27 18:49:59 +01:00
|
|
|
version: 1.0.{build}
|
|
|
|
image: Visual Studio 2019
|
|
|
|
configuration: Release
|
|
|
|
platform: x64
|
|
|
|
clone_folder: '%USERPROFILE%\go\src\github.com\pulumi\pulumi'
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /v\d*\.\d*\.\d*/
|
|
|
|
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/
|
|
|
|
AWS_REGION: us-west-2
|
|
|
|
ARM_LOCATION: "West US 2"
|
|
|
|
ARM_ENVIRONMENT: public
|
|
|
|
matrix:
|
|
|
|
- nodejs_version: "10.15.3"
|
|
|
|
init:
|
|
|
|
- ps: Install-Product node $env:nodejs_version x64
|
|
|
|
install:
|
|
|
|
- rmdir C:\go /s /q
|
|
|
|
- appveyor DownloadFile https://dl.google.com/go/go1.13.4.windows-amd64.zip
|
|
|
|
- 7z x go1.13.4.windows-amd64.zip -y -oC:\ > NUL
|
|
|
|
- cmd: >-
|
|
|
|
set GOPATH=%USERPROFILE%\go
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
set PATH=C:\go\bin;%PATH%;%GOPATH%\bin
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
set PATH=%PATH%;%USERPROFILE%\.yarn\bin
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
set PulumiRoot=C:\Pulumi
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
set PATH=%PulumiRoot%\bin;%PATH%
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
go version
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
git clone https://github.com/pulumi/scripts.git "%USERPROFILE%\go\src\github.com\pulumi\scripts"
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
set PATH=%PATH%;C:\Python37-x64\Scripts
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
pip3 install pyenv-win --target %USERPROFILE%/.pyenv
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
set PYENV=%USERPROFILE%\.pyenv\pyenv-win
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
set PATH=%PATH%;%PYENV%\bin;%PYENV%\shims
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
pip3 install pipenv
|
|
|
|
|
|
|
|
set PULUMI_LOCAL_NUGET=C:\Pulumi\nuget
|
|
|
|
|
|
|
|
set PULUMI_TEST_OWNER=moolumi
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
choco install dep
|
|
|
|
- ps: >-
|
|
|
|
New-Item -Type Directory "$env:USERPROFILE\go\bin"
|
|
|
|
build_script:
|
|
|
|
- cmd: >-
|
|
|
|
set GO111MODULE=on
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
pushd . && cd sdk && go mod tidy && go mod download && popd
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
pushd . && cd pkg && go mod tidy && go mod download && popd
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-27 18:49:59 +01:00
|
|
|
pushd . && cd tests && go mod tidy && go mod download && popd
|
2020-03-27 18:53:33 +01:00
|
|
|
|
2020-03-28 22:49:18 +01:00
|
|
|
.\scripts\release.cmd
|
2020-03-27 18:49:59 +01:00
|
|
|
test: off
|