skip_branch_with_pr: true

environment:
  GOPATH: $(HOMEDRIVE)$(HOMEPATH)\go
  MSYSTEM: MINGW64

clone_folder: $(GOPATH)\src\github.com\git-lfs\git-lfs

install:
  - echo $(GOPATH)
  - rd C:\Go /s /q
  - appveyor DownloadFile https://storage.googleapis.com/golang/go1.7.4.windows-amd64.zip
  - 7z x go1.7.4.windows-amd64.zip -oC:\ >nul
  - C:\go\bin\go version
  - cinst InnoSetup -y
  - set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%

build_script:
  - C:\Ruby23\DevKit\mingw\bin\windres.exe script\windows-installer\resources.rc -o resources.syso
  - bash --login -c 'GOARCH=386 script/bootstrap'
  - mv bin\git-lfs.exe git-lfs-x86.exe
  - bash --login -c 'GOARCH=amd64 script/bootstrap'
  - mv bin\git-lfs.exe git-lfs-x64.exe

after_build:
  - iscc script\windows-installer\inno-setup-git-lfs-installer.iss

test_script:
  - bash --login script/cibuild

artifacts:
  - path: git-lfs-x86.exe
  - path: git-lfs-x64.exe
  - path: git-lfs-windows-*.exe

skip_branch_with_pr: true

environment:
  GOPATH: $(HOMEDRIVE)$(HOMEPATH)\go
  MSYSTEM: MINGW64

clone_folder: $(GOPATH)\src\github.com\git-lfs\git-lfs

install:
  - echo %GOPATH%
  - rd C:\Go /s /q
  - appveyor DownloadFile https://storage.googleapis.com/golang/go1.7.4.windows-amd64.zip
  - 7z x go1.7.4.windows-amd64.zip -oC:\ >nul
  - C:\go\bin\go version
  - cinst InnoSetup -y
  - set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%

build_script:
  - C:\Ruby23\DevKit\mingw\bin\windres.exe script\windows-installer\resources.rc -o resources.syso
  - bash --login -c 'GOARCH=386 script/bootstrap'
  - mv bin\git-lfs.exe git-lfs-x86.exe
  - bash --login -c 'GOARCH=amd64 script/bootstrap'
  - mv bin\git-lfs.exe git-lfs-x64.exe

after_build:
  - iscc script\windows-installer\inno-setup-git-lfs-installer.iss

test_script:
  - bash --login script/cibuild

artifacts:
  - path: git-lfs-x86.exe
  - path: git-lfs-x64.exe
  - path: git-lfs-windows-*.exe

Fix printing the GOPATH environment variable
AppVeyor: Fix printing the GOPATH environment variable
