Imported Upstream version 2.4.0
[scm/test.git] / appveyor.yml
1 skip_branch_with_pr: true
2
3 environment:
4   GOPATH: $(HOMEDRIVE)$(HOMEPATH)\go
5   MSYSTEM: MINGW64
6
7 clone_folder: $(GOPATH)\src\github.com\git-lfs\git-lfs
8
9 install:
10   - rd C:\Go /s /q
11   - cinst golang --version 1.8.3 -y
12   - cinst InnoSetup -y
13   - refreshenv
14   - ps: |
15       echo "Go directories in machine PATH environment:"
16       [environment]::GetEnvironmentVariable("PATH","Machine").split(";") | Select-String -Pattern "\\go\\"
17       echo "Go directories in user PATH environment:"
18       [environment]::GetEnvironmentVariable("PATH","User").split(";") | Select-String -Pattern "\\go\\"
19       echo "Go directories in process PATH environment:"
20       [environment]::GetEnvironmentVariable("PATH","Process").split(";") | Select-String -Pattern "\\go\\"
21       echo "Go version information:"
22       go version
23
24 build_script:
25   - bash --login -c 'GOARCH=386 script/bootstrap'
26   - mv bin\git-lfs.exe git-lfs-x86.exe
27   - bash --login -c 'GOARCH=amd64 script/bootstrap'
28   - mv bin\git-lfs.exe git-lfs-x64.exe
29
30 after_build:
31   - iscc script\windows-installer\inno-setup-git-lfs-installer.iss
32
33 test_script:
34   - bash --login script/cibuild
35
36 artifacts:
37   - path: git-lfs-x86.exe
38   - path: git-lfs-x64.exe
39   - path: git-lfs-windows-*.exe