packer-cn/appveyor.yml
Emil Hessman bfcd004497 AppVeyor: only build master branch
AppVeyor builds all branches per default.
Add a configuration setting to only build the master branch.

See http://www.appveyor.com/docs/branches#white-and-blacklisting for details.

For the record, AppVeyor builds can skipped by annotating the commit message
according to http://www.appveyor.com/docs/how-to/skip-build
Useful for e.g. website commits.

[skip appveyor]
2015-06-29 20:07:41 +02:00

38 lines
663 B
YAML

# appveyor.yml reference : http://www.appveyor.com/docs/appveyor-yml
version: "{build}"
skip_tags: true
branches:
only:
- master
os: Windows Server 2012 R2
environment:
GOPATH: c:\gopath
matrix:
- GOARCH: 386
GOVERSION: 1.4.2
- GOARCH: amd64
GOVERSION: 1.4.2
clone_folder: c:\gopath\src\github.com\mitchellh\packer
install:
- set Path=c:\go\bin;%Path%
- echo %Path%
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-%GOARCH%.msi
- msiexec /i go%GOVERSION%.windows-%GOARCH%.msi /q
- go version
- go env
- go get -d -v -t ./...
build_script:
- go test -v ./...
test: off
deploy: off