.appveyor.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. version: "{build}"
  2. platform: x64
  3. image: Visual Studio 2017
  4. clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v7
  5. environment:
  6. GOPATH: c:\gopath
  7. install:
  8. - curl -SLko protoc.zip https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-win32.zip
  9. - 7z e protoc.zip
  10. - move protoc.exe C:\msys64\mingw64\bin
  11. build_script:
  12. - go version
  13. - set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;C:\msys64\usr\bin;C:\msys64\mingw64\bin;%GOPATH%\bin;%PATH%
  14. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  15. - cd %GOPATH%\src\gopkg.in\src-d\hercules.v7
  16. - go get -v github.com/golang/dep/cmd/dep
  17. - make
  18. - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v7\hercules.win64.zip %GOPATH%\bin\hercules.exe
  19. test_script:
  20. - go get -v -t -d gopkg.in/src-d/hercules.v7/...
  21. - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v7/...
  22. artifacts:
  23. - name: hercules.win64.zip
  24. path: hercules.win64.zip
  25. deploy:
  26. release: $(APPVEYOR_REPO_TAG_NAME)
  27. provider: GitHub
  28. auth_token:
  29. secure: 78zsH4q19DqcpdkwnYHQoe0BakBfv+LGu1W7mXuaBC9mS87+EuAj3+yTzJv4NEfI
  30. artifact: hercules.win64.zip
  31. on:
  32. branch: master
  33. appveyor_repo_tag: true