# appveyor.yml reference : http://www.appveyor.com/docs/appveyor-yml # and https://github.com/unicorn-engine/unicorn/blob/master/.appveyor.yml version: "{build}" skip_tags: true branches: only: - master environment: GOPATH: c:\gopath CYG_MIRROR: http://cygwin.mirror.constant.com CYG_PACKAGES: make matrix: - CYG_ROOT: C:\cygwin64 CYG_CACHE: C:\cygwin64\var\cache\setup CYG_SETUP: setup-x86_64.exe BASH: C:\cygwin64\bin\bash - CYG_ROOT: C:\cygwin CYG_CACHE: C:\cygwin\var\cache\setup CYG_SETUP: setup-x86.exe BASH: C:\cygwin\bin\bash init: # Carriage returns are bad - cmd: 'git config --global core.autocrlf input' # Cache Cygwin files to speed up build cache: - '%CYG_CACHE%' clone_folder: c:\gopath\src\github.com\hashicorp\packer # Install needed build dependencies install: - ps: if (Test-Path Env:\CYG_ROOT) { Start-FileDownload "https://cygwin.com/$env:CYG_SETUP" -FileName "$env:CYG_SETUP" } - if defined CYG_ROOT (%CYG_SETUP% --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages "%CYG_PACKAGES%" --upgrade-also) - echo %Path% - go version - go env build_script: - git rev-parse HEAD - (%BASH% -lc "make deps") test_script: - (%BASH% -lc "make ci") deploy: off