.appveyor.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. version: "{build}"
  2. platform: x64
  3. image: Visual Studio 2017
  4. clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v4
  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. - 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;%PATH%
  13. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  14. - cd %GOPATH%\src\gopkg.in\src-d\hercules.v4
  15. - set DISABLE_TENSORFLOW=1
  16. - make
  17. - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v4\hercules.win64.zip %GOPATH%\bin\hercules.exe
  18. test_script:
  19. - go get -v -t -d gopkg.in/src-d/hercules.v4/...
  20. - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v4/...
  21. artifacts:
  22. - name: hercules.win64.zip
  23. path: hercules.win64.zip
  24. deploy:
  25. release: $(APPVEYOR_REPO_TAG_NAME)
  26. provider: GitHub
  27. auth_token:
  28. secure: 78zsH4q19DqcpdkwnYHQoe0BakBfv+LGu1W7mXuaBC9mS87+EuAj3+yTzJv4NEfI
  29. artifact: hercules.win64.zip
  30. on:
  31. branch: master
  32. appveyor_repo_tag: true