appveyor.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. - appveyor-retry choco install --allow-empty-checksums make
  9. - c:\msys64\usr\bin\pacman --noconfirm --needed -S mingw-w64-x86_64-toolchain
  10. - curl -SLko protoc.zip https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-win32.zip
  11. - 7z e protoc.zip
  12. - move protoc.exe C:\msys64\mingw64\bin
  13. build_script:
  14. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  15. - set PATH=C:\msys64\mingw64\bin;%PATH%
  16. - cd %GOPATH%\src\gopkg.in\src-d\hercules.v4
  17. - set DISABLE_TENSORFLOW=1
  18. - make
  19. - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v4\hercules.win64.zip %GOPATH%\bin\hercules.exe
  20. test_script:
  21. - go get -v -t -d gopkg.in/src-d/hercules.v4/...
  22. - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v4/...
  23. artifacts:
  24. - name: hercules.win64.zip
  25. path: hercules.win64.zip
  26. deploy:
  27. release: $(APPVEYOR_REPO_TAG_NAME)
  28. provider: GitHub
  29. auth_token:
  30. secure: 78zsH4q19DqcpdkwnYHQoe0BakBfv+LGu1W7mXuaBC9mS87+EuAj3+yTzJv4NEfI
  31. artifact: hercules.win64.zip
  32. on:
  33. branch: master
  34. appveyor_repo_tag: true