appveyor.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # version format
  2. version: "{build}"
  3. # Operating system (build VM template)
  4. # os: Windows Server 2012 R2
  5. os: Visual Studio 2017
  6. # Platform.
  7. # platform:
  8. # - x64
  9. # - x86
  10. clone_folder: c:\gopath\src\github.com\go-vgo\robotgo
  11. # Environment variables
  12. environment:
  13. global:
  14. GOPATH: C:\gopath
  15. CC: gcc.exe
  16. matrix:
  17. - GOARCH: amd64
  18. # GOVERSION: 1.9.3
  19. GETH_ARCH: amd64
  20. MSYS2_ARCH: x86_64
  21. MSYS2_BITS: 64
  22. MSYSTEM: MINGW64
  23. PATH: C:\msys64\mingw64\bin\;C:\Program Files (x86)\NSIS\;%PATH%
  24. - GOARCH: 386
  25. # GOVERSION: 1.9.3
  26. GETH_ARCH: 386
  27. MSYS2_ARCH: i686
  28. MSYS2_BITS: 32
  29. MSYSTEM: MINGW32
  30. PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
  31. # - COMPILER: MINGW_W64
  32. # ARCHITECTURE: x64
  33. GOVERSION: 1.23.0
  34. # GOPATH: c:\gopath
  35. # scripts that run after cloning repository
  36. # install:
  37. # - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
  38. # - go version
  39. # - go env
  40. # - gcc --version
  41. # - python --version
  42. install:
  43. - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
  44. - git submodule update --init
  45. - rmdir C:\go /s /q
  46. - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-%GETH_ARCH%.zip
  47. - 7z x go%GOVERSION%.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
  48. - go version
  49. - go env
  50. - gcc --version
  51. # To run your custom scripts instead of automatic MSBuild
  52. build_script:
  53. # We need to disable firewall - https://github.com/appveyor/ci/issues/1579#issuecomment-309830648
  54. - ps: Disable-NetFirewallRule -DisplayName 'File and Printer Sharing (SMB-Out)'
  55. - cd c:\gopath\src\github.com\go-vgo\robotgo
  56. - git branch
  57. - go get -t ./...
  58. # To run your custom scripts instead of automatic tests
  59. test_script:
  60. # Unit tests
  61. - ps: Add-AppveyorTest "Unit Tests" -Outcome Running
  62. - go test -v github.com/go-vgo/robotgo/...
  63. - ps: Update-AppveyorTest "Unit Tests" -Outcome Passed
  64. # notifications:
  65. # - provider: Email
  66. # to:
  67. # - .io
  68. # on_build_failure: true
  69. # on_build_status_changed: true
  70. # to disable deployment
  71. deploy: off